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.
|
// make it a relative path instead of absolute path.
|
||||||
const QDir dir(rootpath);
|
const QDir dir(rootpath);
|
||||||
const QString relpath(dir.relativeFilePath(selectedDir));
|
const QString relpath(dir.relativeFilePath(selectedDir));
|
||||||
if (!relpath.startsWith("."))
|
if (!relpath.startsWith("../.."))
|
||||||
selectedDir = relpath;
|
selectedDir = relpath;
|
||||||
|
|
||||||
// Trailing slash..
|
// Trailing slash..
|
||||||
|
|
|
@ -447,7 +447,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_7">
|
<widget class="QGroupBox" name="groupBox_7">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Exclude paths</string>
|
<string>Exclude source files in paths</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
|
|
Loading…
Reference in New Issue