GUI: Updated selection of files/folders. Prefer relative paths.
This commit is contained in:
parent
7f19a9a255
commit
ccc830870c
|
@ -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..
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue