diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp index 00dcf7034..ce9582627 100644 --- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -363,7 +363,7 @@ QString ProjectFileDialog::getExistingDirectory(const QString &caption, bool tra // make it a relative path instead of absolute path. const QDir dir(rootpath); const QString relpath(dir.relativeFilePath(selectedDir)); - if (!relpath.startsWith(".")) + if (!relpath.startsWith("../..")) selectedDir = relpath; // Trailing slash.. diff --git a/gui/projectfiledialog.ui b/gui/projectfiledialog.ui index 7e9373ef4..eab08aa8c 100644 --- a/gui/projectfiledialog.ui +++ b/gui/projectfiledialog.ui @@ -447,7 +447,7 @@ - Exclude paths + Exclude source files in paths