From ccc830870c295fc9b1a673de244a2ccd49d69bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 16 Apr 2019 10:32:34 +0200 Subject: [PATCH] GUI: Updated selection of files/folders. Prefer relative paths. --- gui/projectfiledialog.cpp | 2 +- gui/projectfiledialog.ui | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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