Allow project roots that are relative to the project file's location

This commit is contained in:
Jan Hellwig 2015-08-10 20:48:08 +02:00
parent a5aba110a4
commit 308e7d9ae4
1 changed files with 2 additions and 0 deletions

View File

@ -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;