Allow project roots that are relative to the project file's location
This commit is contained in:
parent
a5aba110a4
commit
308e7d9ae4
|
@ -1113,6 +1113,8 @@ void MainWindow::CheckProject(Project *project)
|
||||||
// file's location directory as root path
|
// file's location directory as root path
|
||||||
if (rootpath.isEmpty() || rootpath == ".")
|
if (rootpath.isEmpty() || rootpath == ".")
|
||||||
mCurrentDirectory = inf.canonicalPath();
|
mCurrentDirectory = inf.canonicalPath();
|
||||||
|
else if (rootpath.startsWith("."))
|
||||||
|
mCurrentDirectory = inf.canonicalPath() + rootpath.mid(1);
|
||||||
else
|
else
|
||||||
mCurrentDirectory = rootpath;
|
mCurrentDirectory = rootpath;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue