GUI: Set current directory when loading a project file.

This commit is contained in:
Kimmo Varis 2010-08-19 22:06:45 +03:00
parent c8e073576c
commit 2da6a242d2
1 changed files with 3 additions and 0 deletions

View File

@ -702,7 +702,10 @@ void MainWindow::OpenProjectFile()
mProject->Open(); mProject->Open();
QStringList paths = mProject->GetProjectFile()->GetCheckPaths(); QStringList paths = mProject->GetProjectFile()->GetCheckPaths();
if (!paths.isEmpty()) if (!paths.isEmpty())
{
mCurrentDirectory = paths[0];
DoCheckFiles(paths); DoCheckFiles(paths);
}
} }
} }