Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 132 files). 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 | |
| @@ -76,8 +76,7 @@ QStringList FileScriptingInterface::unzipFile(QString path, QString tempDir) { · 28 unmodified lines | ||
| 76 | 76 | |
| 77 | 77 | if (!list.isEmpty()) { |
| 78 | 78 | return list; |
| 79 | − } | |
| 80 | − else { | |
| 79 | + } else { | |
| 81 | 80 | qCDebug(scriptengine) << "Extraction failed"; |
| 82 | 81 | return list; |
| 83 | 82 | } |