Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -36,7 +36,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 35 unmodified lines | ||
| 36 | 36 | qDebug() << "Path where download is saved: " + path; |
| 37 | 37 | QString fileName = "/" + path.section("/", -1); |
| 38 | 38 | qDebug() << "Filename to remove from temp path: " + fileName; |
| 39 | − QString tempDir = path.remove(fileName); | |
| 39 | + QString tempDir = path; | |
| 40 | + tempDir.remove(fileName); | |
| 40 | 41 | qDebug() << "Temporary directory at: " + tempDir; |
| 41 | 42 | QString file = unzipFile(path, tempDir); |
| 42 | 43 | if (file != "") { |