History

Fixed temp dir access

elisa-lj11 committed 10 years ago

Commit 5d2fb681 parent 9ea9bae1 file · +2 −1Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+2−1
@@ -36,7 +36,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 35 unmodified lines
3636 qDebug() << "Path where download is saved: " + path;
3737 QString fileName = "/" + path.section("/", -1);
3838 qDebug() << "Filename to remove from temp path: " + fileName;
39− QString tempDir = path.remove(fileName);
39+ QString tempDir = path;
40+ tempDir.remove(fileName);
4041 qDebug() << "Temporary directory at: " + tempDir;
4142 QString file = unzipFile(path, tempDir);
4243 if (file != "") {