diff --git a/src/AnalTask.cpp b/src/AnalTask.cpp index 75b19eda..15d7ff6e 100644 --- a/src/AnalTask.cpp +++ b/src/AnalTask.cpp @@ -36,7 +36,7 @@ void AnalTask::runTask() // Do not reload the file if already loaded QJsonArray openedFiles = Core()->getOpenedFiles(); - if (!openedFiles.size()) { + if (!openedFiles.size() && options.filename.length()) { bool fileLoaded = Core()->loadFile(options.filename, options.binLoadAddr, options.mapAddr, @@ -47,7 +47,7 @@ void AnalTask::runTask() if (!fileLoaded) { // Something wrong happened, fallback to open dialog emit openFileFailed(); - AsyncTask::interrupt(); + interrupt(); return; } } @@ -60,8 +60,8 @@ void AnalTask::runTask() Core()->cmd("e asm.os=" + options.os); } - // Load PDB and/or scripts if (!options.pdbFile.isNull()) { + log(tr("Loading PDB file...\n")); Core()->loadPDB(options.pdbFile); } @@ -70,6 +70,7 @@ void AnalTask::runTask() } if (!options.script.isNull()) { + log(tr("Executing script...\n")); Core()->loadScript(options.script); } diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 34815751..73baf87d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -74,7 +74,7 @@ #include "widgets/HeadersWidget.h" #include "widgets/ZignaturesWidget.h" -// graphics +// Graphics #include #include #include