File 0001-Look-for-designer-qt5-on-openSUSE.patch of Package korganizer
From a5407d204273a67a4074daa5105c7c3e713dcf1f Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Tue, 16 Feb 2021 10:23:51 +0100
Subject: [PATCH] Look for designer-qt5 on openSUSE
---
src/kcmdesignerfields.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kcmdesignerfields.cpp b/src/kcmdesignerfields.cpp
index 64ac51f..407e971 100644
--- a/src/kcmdesignerfields.cpp
+++ b/src/kcmdesignerfields.cpp
@@ -269,7 +269,7 @@ void KCMDesignerFields::initGUI()
auto layout = new QVBoxLayout(this);
layout->setContentsMargins({});
- const bool noDesigner = QStandardPaths::findExecutable(QStringLiteral("designer")).isEmpty();
+ const bool noDesigner = QStandardPaths::findExecutable(QStringLiteral("designer-qt5")).isEmpty();
if (noDesigner) {
const QString txt = i18n(
@@ -438,7 +438,7 @@ void KCMDesignerFields::startDesigner()
args.append(pageItem->path());
}
- KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(QStringLiteral("designer"), args, this);
+ KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(QStringLiteral("designer-qt5"), args, this);
job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->start();
}
--
2.30.2