Fixed #1229 (GUI: project file not read when checking a file)
This commit is contained in:
parent
e1b30721cd
commit
0186d59cbe
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue