diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-20 11:51:44 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-07-20 11:54:15 +0100 |
commit | 842f08dcfc29d24cae13c25264e67375dd069e27 (patch) | |
tree | 6ddab902a2a2a994b2518744074726c220f695d2 /launcher/DesktopServices.cpp | |
parent | 960093700a9daa4e2115d4663ab486a5dd1a4757 (diff) | |
download | PrismLauncher-842f08dcfc29d24cae13c25264e67375dd069e27.tar.gz PrismLauncher-842f08dcfc29d24cae13c25264e67375dd069e27.tar.bz2 PrismLauncher-842f08dcfc29d24cae13c25264e67375dd069e27.zip |
(UX) Add open folder button next to combo boxes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
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 2984a1b4..4939161f 100644 --- a/launcher/DesktopServices.cpp +++ b/launcher/DesktopServices.cpp @@ -109,7 +109,7 @@ bool openDirectory(const QString &path, bool ensureExists) qDebug() << "Opening directory" << path; QDir parentPath; QDir dir(path); - if (!dir.exists()) + if (ensureExists && !dir.exists()) { parentPath.mkpath(dir.absolutePath()); } |