GUI: Updated selection of files/folders. Prefer relative paths.

This commit is contained in:
Daniel Marjamäki 2019-04-16 10:32:34 +02:00
parent 7f19a9a255
commit ccc830870c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -447,7 +447,7 @@
<item>
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>Exclude paths</string>
<string>Exclude source files in paths</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>