From 14432a870de4300ef0f1a08ac8715f2bbcf96144 Mon Sep 17 00:00:00 2001 From: Bearborg Date: Sun, 21 May 2023 14:29:56 -0400 Subject: [PATCH] Allow using PrimeHack for QuickPlay --- src/Editor/NDolphinIntegration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/NDolphinIntegration.cpp b/src/Editor/NDolphinIntegration.cpp index 91501af5..ca2e5591 100644 --- a/src/Editor/NDolphinIntegration.cpp +++ b/src/Editor/NDolphinIntegration.cpp @@ -324,7 +324,7 @@ bool SetDolphinPath(QWidget* pParentWidget, const QString& kDolphinPath, bool bS // Dolphin unfortunately collide's with KDE Plasma's file manager which also happens to be named "Dolphin" // Fortunately the latter uses a lowercase name so we can differentiate. QStringList VersionParts = VersionString.split(' '); - if (VersionParts.count() != 2 || VersionParts[0] != "Dolphin") + if (VersionParts.count() < 2 || (VersionParts[0] != "Dolphin" && VersionParts[0] != "PrimeHack")) { if (!bSilent) { @@ -333,7 +333,7 @@ bool SetDolphinPath(QWidget* pParentWidget, const QString& kDolphinPath, bool bS return false; } - debugf("Found dolphin version %s", *TO_TSTRING(VersionParts[1])); + debugf("Found %s version %s", *TO_TSTRING(VersionParts.first()), *TO_TSTRING(VersionParts.last())); // Build is legit, stash it QSettings Settings;