From 308e7d9ae478b3cb01ad8e5034a3fce0925996dd Mon Sep 17 00:00:00 2001 From: Jan Hellwig Date: Mon, 10 Aug 2015 20:48:08 +0200 Subject: [PATCH] Allow project roots that are relative to the project file's location --- gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b02930de7..b086d82ae 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1113,6 +1113,8 @@ void MainWindow::CheckProject(Project *project) // file's location directory as root path if (rootpath.isEmpty() || rootpath == ".") mCurrentDirectory = inf.canonicalPath(); + else if (rootpath.startsWith(".")) + mCurrentDirectory = inf.canonicalPath() + rootpath.mid(1); else mCurrentDirectory = rootpath;