Merge pull request #636 from Jan2go/master
Allow project roots that are relative to the project file's location
This commit is contained in:
commit
7368daa14a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue