diff --git a/gui/common.h b/gui/common.h index d13eddcf9..5a43ef5b9 100644 --- a/gui/common.h +++ b/gui/common.h @@ -92,7 +92,7 @@ #define SETTINGS_LAST_APP_PATH "Last application path" -/** +/** * @brief Obtains the path of specified type * Returns the path of specified type if not empty. Otherwise returns last check * path if valid or user's home directory. @@ -101,7 +101,7 @@ */ QString GetPath(const QString &type); -/** +/** * @brief Stores last used path of specified type * Stores provided path as last used path for specified type. * @param type Type of the path to store diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index c94352eb9..79605426b 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -411,9 +411,9 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode) FormatAndSetTitle(dir); } } - + SetPath(SETTINGS_LAST_CHECK_PATH, mCurrentDirectory); - + return selected; } @@ -1029,7 +1029,7 @@ void MainWindow::NewProjectFile() return; SetPath(SETTINGS_LAST_PROJECT_PATH, filepath); - + EnableProjectActions(true); QFileInfo inf(filepath); const QString filename = inf.fileName(); diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 8e8675f21..efaba842d 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -694,7 +694,7 @@ QString ResultsTree::AskFileDir(const QString &file) msgbox.setText(text); msgbox.setIcon(QMessageBox::Warning); msgbox.exec(); - + QString dir = QFileDialog::getExistingDirectory(this, tr("Select Directory"), GetPath(SETTINGS_LAST_SOURCE_PATH), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);