Blame SOURCES/0034-Fix-crash-if-no-input-method-module-could-be-loaded.patch

93bb3c
From 297c4e075068bffe4a396b2553afc4798c97fb4c Mon Sep 17 00:00:00 2001
93bb3c
From: Joni Poikelin <joni.poikelin@qt.io>
93bb3c
Date: Thu, 3 Feb 2022 14:01:50 +0200
93bb3c
Subject: [PATCH 34/40] Fix crash if no input method module could be loaded
93bb3c
93bb3c
Pick-to: 6.2 6.3 5.15
93bb3c
Change-Id: I8f346def616606a6c5540856bd08a84ee7ed5ca2
93bb3c
Reviewed-by: David Edmundson <davidedmundson@kde.org>
93bb3c
(cherry picked from commit 49fb7248f6ab7de046e2179c7861951ea1169e9b)
93bb3c
---
93bb3c
 src/client/qwaylandintegration.cpp | 2 +-
93bb3c
 1 file changed, 1 insertion(+), 1 deletion(-)
93bb3c
93bb3c
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
93bb3c
index 3b876047..fbf00c6b 100644
93bb3c
--- a/src/client/qwaylandintegration.cpp
93bb3c
+++ b/src/client/qwaylandintegration.cpp
93bb3c
@@ -491,7 +491,7 @@ void QWaylandIntegration::reconfigureInputContext()
93bb3c
     }
93bb3c
 #endif
93bb3c
 
93bb3c
-    qCDebug(lcQpaWayland) << "using input method:" << inputContext()->metaObject()->className();
93bb3c
+    qCDebug(lcQpaWayland) << "using input method:" << (inputContext() ? inputContext()->metaObject()->className() : "<none>");
93bb3c
 }
93bb3c
 
93bb3c
 QWaylandShellIntegration *QWaylandIntegration::createShellIntegration(const QString &integrationName)
93bb3c
-- 
93bb3c
2.35.1
93bb3c