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
3232 // nothing for now
3333 }
3434
35−void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isBlocks) {
35+void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool isZip) {
3636 qCDebug(scriptengine) << "Url that was downloaded: " + url.toString();
3737 qCDebug(scriptengine) << "Path where download is saved: " + path;
3838 QString fileName = "/" + path.section("/", -1);
3939 QString tempDir = path;
40− if (!isBlocks) {
40+ if (!isZip) {
4141 tempDir.remove(fileName);
4242 } else {
4343 QTemporaryDir blocks;
@@ -60,7 +60,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 16 unmodified lines
6060 else {
6161 qCDebug(scriptengine) << "Unzip failed";
6262 }
63− emit unzipResult(path, fileList, autoAdd, isBlocks);
63+ emit unzipResult(path, fileList, autoAdd, isZip);
6464
6565 }
6666