1
0
kde-cli-tools5/0001-Call-KLocalizedString-setApplicationDomain-after-Q-A.patch
Fabian Vogt 2a6104db55 - Add patches to support wayland sessions without QT_QPA_PLUGIN:
* 0001-Call-KLocalizedString-setApplicationDomain-after-Q-A.patch
  * 0002-Use-platform-detection-from-KWorkSpace-in-KCMShell.patch
  * 0003-Fix-build-in-kcmshell5-accidentially-landed-the-wron.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kde-cli-tools5?expand=0&rev=187
2018-03-28 08:21:01 +00:00

30 lines
964 B
Diff

From e83437e6e5caf39c1c5df4e7ab5600440e43ff28 Mon Sep 17 00:00:00 2001
From: "Friedrich W. H. Kossebau" <kossebau@kde.org>
Date: Sat, 10 Feb 2018 14:04:57 +0100
Subject: [PATCH 1/3] Call KLocalizedString::setApplicationDomain after Q*App
creation
As now recommended, to ensure all locale settings are done from Qt side
---
kcmshell/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kcmshell/main.cpp b/kcmshell/main.cpp
index dd4ed1c..93dd6f8 100644
--- a/kcmshell/main.cpp
+++ b/kcmshell/main.cpp
@@ -173,9 +173,9 @@ void KCMShell::appExit(const QString &appId, const QString &oldName, const QStri
extern "C" Q_DECL_EXPORT int kdemain(int _argc, char *_argv[])
{
+ KCMShell app(_argc, _argv);
KLocalizedString::setApplicationDomain("kcmshell5");
- KCMShell app(_argc, _argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KAboutData aboutData("kcmshell5", i18n("System Settings Module"),
--
2.16.2