Fixed #1229 (GUI: project file not read when checking a file)

This commit is contained in:
Kimmo Varis 2010-01-06 11:34:02 +02:00
parent e1b30721cd
commit 0186d59cbe
1 changed files with 5 additions and 0 deletions

View File

@ -256,6 +256,11 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode)
mSettings->value(SETTINGS_CHECK_PATH, "").toString()); mSettings->value(SETTINGS_CHECK_PATH, "").toString());
if (selected.isEmpty()) if (selected.isEmpty())
mCurrentDirectory.clear(); mCurrentDirectory.clear();
else
{
QFileInfo inf(selected[0]);
mCurrentDirectory = inf.absolutePath();
}
FormatAndSetTitle(); FormatAndSetTitle();
} }
else if (mode == QFileDialog::DirectoryOnly) else if (mode == QFileDialog::DirectoryOnly)