aboutsummaryrefslogtreecommitdiff
path: root/launcher/DesktopServices.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 10:43:29 +0200
committerGitHub <noreply@github.com>2023-08-15 10:43:29 +0200
commit7ba1e7d3569fcb04cb49d16247703bf2862172ba (patch)
tree9eb12949538323c2afa9545907057c4e575ce7c2 /launcher/DesktopServices.cpp
parentf533173b9589a0c3bfca0845b0c3939f5131c018 (diff)
parent6ce7e426d2e3bbca74719da073eb46d05b001439 (diff)
downloadPrismLauncher-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.cpp2
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())); };