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:
parent
f12b27f360
commit
24061e536b
|
@ -386,7 +386,11 @@ void MainWindow::CheckDirectory()
|
||||||
int dlgResult = msgBox.exec();
|
int dlgResult = msgBox.exec();
|
||||||
if (dlgResult == QMessageBox::Yes)
|
if (dlgResult == QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
LoadProjectFile(projFiles[0]);
|
QString path = checkDir.canonicalPath();
|
||||||
|
if (!path.endsWith("/"))
|
||||||
|
path += "/";
|
||||||
|
path += projFiles[0];
|
||||||
|
LoadProjectFile(path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue