Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -32,12 +32,12 @@ FileScriptingInterface::FileScriptingInterface(QObject* parent) : QObject(parent · 31 unmodified lines | ||
| 32 | 32 | // nothing for now |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | −void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isBlocks) { | |
| 35 | +void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isZip) { | |
| 36 | 36 | qCDebug(scriptengine) << "Url that was downloaded: " + url.toString(); |
| 37 | 37 | qCDebug(scriptengine) << "Path where download is saved: " + path; |
| 38 | 38 | QString fileName = "/" + path.section("/", -1); |
| 39 | 39 | QString tempDir = path; |
| 40 | − if (!isBlocks) { | |
| 40 | + if (!isZip) { | |
| 41 | 41 | tempDir.remove(fileName); |
| 42 | 42 | } else { |
| 43 | 43 | QTemporaryDir blocks; |
| @@ -60,7 +60,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 16 unmodified lines | ||
| 60 | 60 | else { |
| 61 | 61 | qCDebug(scriptengine) << "Unzip failed"; |
| 62 | 62 | } |
| 63 | − emit unzipResult(path, fileList, autoAdd, isBlocks); | |
| 63 | + emit unzipResult(path, fileList, autoAdd, isZip); | |
| 64 | 64 | |
| 65 | 65 | } |
| 66 | 66 | |