From 24061e536bff0d53ab3778f9cfd9a7e40c066bf8 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 8 Jun 2011 10:40:17 +0300 Subject: [PATCH] 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. --- gui/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 7feb87256..41bc32262 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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 {