diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 7d73e0b3b..666d94ee1 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -684,8 +684,8 @@ QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode) formatAndSetTitle(dir); } } - - setPath(SETTINGS_LAST_CHECK_PATH, mCurrentDirectory); + if (!mCurrentDirectory.isEmpty()) + setPath(SETTINGS_LAST_CHECK_PATH, mCurrentDirectory); return selected; }