From 0186d59cbe30e1f90fd6a11fc55f4920111c31b7 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 6 Jan 2010 11:34:02 +0200 Subject: [PATCH] Fixed #1229 (GUI: project file not read when checking a file) --- gui/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 5b6ac26fb..46ae4cf9d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -256,6 +256,11 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode) mSettings->value(SETTINGS_CHECK_PATH, "").toString()); if (selected.isEmpty()) mCurrentDirectory.clear(); + else + { + QFileInfo inf(selected[0]); + mCurrentDirectory = inf.absolutePath(); + } FormatAndSetTitle(); } else if (mode == QFileDialog::DirectoryOnly)