Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -40,8 +40,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 39 unmodified lines | ||
| 40 | 40 | if (!isZip) { |
| 41 | 41 | tempDir.remove(fileName); |
| 42 | 42 | } else { |
| 43 | − QTemporaryDir blocks; | |
| 44 | − tempDir = blocks.path(); | |
| 43 | + QTemporaryDir zipTemp; | |
| 44 | + tempDir = zipTemp.path(); | |
| 45 | 45 | path.remove("file:///"); |
| 46 | 46 | } |
| 47 | 47 | |
| @@ -56,8 +56,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 8 unmodified lines | ||
| 56 | 56 | |
| 57 | 57 | if (filename != "") { |
| 58 | 58 | qCDebug(scriptengine) << "File to upload: " + filename; |
| 59 | − } | |
| 60 | − else { | |
| 59 | + } else { | |
| 61 | 60 | qCDebug(scriptengine) << "Unzip failed"; |
| 62 | 61 | } |
| 63 | 62 | emit unzipResult(path, fileList, autoAdd, isZip); |
| @@ -76,8 +75,7 @@ QStringList FileScriptingInterface::unzipFile(QString path, QString tempDir) { · 12 unmodified lines | ||
| 76 | 75 | |
| 77 | 76 | if (!list.isEmpty()) { |
| 78 | 77 | return list; |
| 79 | − } | |
| 80 | − else { | |
| 78 | + } else { | |
| 81 | 79 | qCDebug(scriptengine) << "Extraction failed"; |
| 82 | 80 | return list; |
| 83 | 81 | } |