diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 10:43:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 10:43:29 +0200 |
commit | 7ba1e7d3569fcb04cb49d16247703bf2862172ba (patch) | |
tree | 9eb12949538323c2afa9545907057c4e575ce7c2 /launcher/DesktopServices.cpp | |
parent | f533173b9589a0c3bfca0845b0c3939f5131c018 (diff) | |
parent | 6ce7e426d2e3bbca74719da073eb46d05b001439 (diff) | |
download | PrismLauncher-7ba1e7d3569fcb04cb49d16247703bf2862172ba.tar.gz PrismLauncher-7ba1e7d3569fcb04cb49d16247703bf2862172ba.tar.bz2 PrismLauncher-7ba1e7d3569fcb04cb49d16247703bf2862172ba.zip |
Merge pull request #1407 from TheKodeToad/icon-indexing
Diffstat (limited to 'launcher/DesktopServices.cpp')
-rw-r--r-- | launcher/DesktopServices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/DesktopServices.cpp b/launcher/DesktopServices.cpp index 6b738f2c..004e5e08 100644 --- a/launcher/DesktopServices.cpp +++ b/launcher/DesktopServices.cpp @@ -101,7 +101,7 @@ bool openDirectory(const QString& path, [[maybe_unused]] bool ensureExists) qDebug() << "Opening directory" << path; QDir parentPath; QDir dir(path); - if (!dir.exists()) { + if (ensureExists && !dir.exists()) { parentPath.mkpath(dir.absolutePath()); } auto f = [&]() { return QDesktopServices::openUrl(QUrl::fromLocalFile(dir.absolutePath())); }; |