Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -31,7 +31,7 @@ FileScriptingInterface::FileScriptingInterface(QObject* parent) : QObject(parent · 30 unmodified lines | |||
| 31 | // nothing for now | 31 | // nothing for now |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void FileScriptingInterface::runUnzip(QString path, QUrl url) { | 34 | void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd) { |
| 35 | qDebug() << "Url that was downloaded: " + url.toString(); | 35 | qDebug() << "Url that was downloaded: " + url.toString(); |
| 36 | qDebug() << "Path where download is saved: " + path; | 36 | qDebug() << "Path where download is saved: " + path; |
| 37 | QString fileName = "/" + path.section("/", -1); | 37 | QString fileName = "/" + path.section("/", -1); |
| @@ -47,7 +47,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 9 unmodified lines | |||
| 47 | if (file != "") { | 47 | if (file != "") { |
| 48 | qDebug() << "Object file to upload: " + file; | 48 | qDebug() << "Object file to upload: " + file; |
| 49 | QUrl url = QUrl::fromLocalFile(file); | 49 | QUrl url = QUrl::fromLocalFile(file); |
| 50 | emit unzipSuccess(url.toString()); | 50 | emit unzipSuccess(url.toString(), autoAdd); |
| 51 | } else { | 51 | } else { |
| 52 | qDebug() << "unzip failed"; | 52 | qDebug() << "unzip failed"; |
| 53 | } | 53 | } |