Skip to content

Commit ccc8308

Browse files
committed
GUI: Updated selection of files/folders. Prefer relative paths.
1 parent 7f19a9a commit ccc8308

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gui/projectfiledialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ QString ProjectFileDialog::getExistingDirectory(const QString &caption, bool tra
363363
// make it a relative path instead of absolute path.
364364
const QDir dir(rootpath);
365365
const QString relpath(dir.relativeFilePath(selectedDir));
366-
if (!relpath.startsWith("."))
366+
if (!relpath.startsWith("../.."))
367367
selectedDir = relpath;
368368

369369
// Trailing slash..

gui/projectfiledialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
<item>
448448
<widget class="QGroupBox" name="groupBox_7">
449449
<property name="title">
450-
<string>Exclude paths</string>
450+
<string>Exclude source files in paths</string>
451451
</property>
452452
<layout class="QHBoxLayout" name="horizontalLayout_4">
453453
<item>

0 commit comments

Comments
 (0)