GUI: Give full path when opening project file.

Fix I did yesterday gave only filename of the project file for
function loading project file. Causing the loading failing if
not in "current" directory.
This commit is contained in:
Kimmo Varis 2011-06-08 10:40:17 +03:00
parent f12b27f360
commit 24061e536b
1 changed files with 5 additions and 1 deletions

View File

@ -386,7 +386,11 @@ void MainWindow::CheckDirectory()
int dlgResult = msgBox.exec();
if (dlgResult == QMessageBox::Yes)
{
LoadProjectFile(projFiles[0]);
QString path = checkDir.canonicalPath();
if (!path.endsWith("/"))
path += "/";
path += projFiles[0];
LoadProjectFile(path);
}
else
{