From 2da6a242d2721afd01d5e70857b74e0d899b21b4 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 19 Aug 2010 22:06:45 +0300 Subject: [PATCH] GUI: Set current directory when loading a project file. --- gui/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 916af3e49..1a0437434 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -702,7 +702,10 @@ void MainWindow::OpenProjectFile() mProject->Open(); QStringList paths = mProject->GetProjectFile()->GetCheckPaths(); if (!paths.isEmpty()) + { + mCurrentDirectory = paths[0]; DoCheckFiles(paths); + } } }