diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 170acfc45..d58165a0d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -995,9 +995,9 @@ void MainWindow::NewProjectFile() if (filepath.isEmpty()) return; - + mSettings->setValue(SETTINGS_LAST_USED_PATH, filepath); - + EnableProjectActions(true); QFileInfo inf(filepath); const QString filename = inf.fileName(); diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index d34847e6f..773743e6e 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -689,7 +689,7 @@ QString ResultsTree::AskFileDir(const QString &file) msgbox.setText(text); msgbox.setIcon(QMessageBox::Warning); msgbox.exec(); - + QSettings settings; QString dir = QFileDialog::getExistingDirectory(this, tr("Select Directory"), settings.value(SETTINGS_LAST_USED_PATH, "").toString(),