Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -44,13 +44,13 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd) { · 43 unmodified lines | ||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | QString file = unzipFile(path, tempDir); |
| 47 | + QString filename = QUrl::fromLocalFile(file).toString(); | |
| 47 | 48 | if (file != "") { |
| 48 | − qDebug() << "Object file to upload: " + file; | |
| 49 | − QUrl url = QUrl::fromLocalFile(file); | |
| 50 | − emit unzipSuccess(url.toString(), autoAdd); | |
| 49 | + qDebug() << "File to upload: " + filename; | |
| 51 | 50 | } else { |
| 52 | − qDebug() << "unzip failed"; | |
| 51 | + qDebug() << "Unzip failed"; | |
| 53 | 52 | } |
| 53 | + emit unzipResult(path, filename, autoAdd); | |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | // fix to check that we are only referring to a temporary directory |