summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-23 01:55:18 +0100
committerGitHub <noreply@github.com>2021-03-23 01:55:18 +0100
commitdde074eaab0f833960c2ea427ed94bafb3428f33 (patch)
treea50f146a47c3ccfb27dfbce6a2bb0351be28e7f3
parentMerge pull request #6095 from lat9nq/async-shader-block (diff)
parentFix cancelation of choose directory dialog (diff)
downloadyuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar.gz
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar.bz2
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar.lz
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar.xz
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.tar.zst
yuzu-dde074eaab0f833960c2ea427ed94bafb3428f33.zip
-rw-r--r--src/yuzu/configuration/configure_filesystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_filesystem.cpp b/src/yuzu/configuration/configure_filesystem.cpp
index bde2d4620..58f644af4 100644
--- a/src/yuzu/configuration/configure_filesystem.cpp
+++ b/src/yuzu/configuration/configure_filesystem.cpp
@@ -103,7 +103,10 @@ void ConfigureFilesystem::SetDirectory(DirectoryTarget target, QLineEdit* edit)
str = QFileDialog::getOpenFileName(this, caption, QFileInfo(edit->text()).dir().path(),
QStringLiteral("NX Gamecard;*.xci"));
} else {
- str = QFileDialog::getExistingDirectory(this, caption, edit->text()) + QDir::separator();
+ str = QFileDialog::getExistingDirectory(this, caption, edit->text());
+ if (!str.isNull() && str.back() != QDir::separator()) {
+ str.append(QDir::separator());
+ }
}
if (str.isEmpty())