History

Renamed isBlocks to isZip, added debug print for non-entity files

Elisa Lupin-Jimenez committed 9 years ago

Commit 310a0ee1 parent c03c1c84 files · +12 −11Browse files

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

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+3−3
@@ -32,12 +32,12 @@ FileScriptingInterface::FileScriptingInterface(QObject* parent) : QObject(parent · 31 unmodified lines
32 // nothing for now32 // nothing for now
33}33}
34 34
35void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isBlocks) {35void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isZip) {
36 qCDebug(scriptengine) << "Url that was downloaded: " + url.toString();36 qCDebug(scriptengine) << "Url that was downloaded: " + url.toString();
37 qCDebug(scriptengine) << "Path where download is saved: " + path;37 qCDebug(scriptengine) << "Path where download is saved: " + path;
38 QString fileName = "/" + path.section("/", -1);38 QString fileName = "/" + path.section("/", -1);
39 QString tempDir = path;39 QString tempDir = path;
40 if (!isBlocks) {40 if (!isZip) {
41 tempDir.remove(fileName);41 tempDir.remove(fileName);
42 } else {42 } else {
43 QTemporaryDir blocks;43 QTemporaryDir blocks;
@@ -60,7 +60,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 16 unmodified lines
60 else {60 else {
61 qCDebug(scriptengine) << "Unzip failed";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