summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@qt.io>2022-02-03 14:01:50 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-03 17:25:03 +0000
commitc034c91ed3e3610e54a2eada1ca73c790a6127f8 (patch)
tree0577e0ee6f80417171e8600a0a1e413aa6fe1e5f
parente3a8c19de733617ea40b6520c3b65e0faf52f578 (diff)
downloadqtwayland-c034c91ed3e3610e54a2eada1ca73c790a6127f8.tar.gz
Fix crash if no input method module could be loaded
Change-Id: I8f346def616606a6c5540856bd08a84ee7ed5ca2 Reviewed-by: David Edmundson <davidedmundson@kde.org> (cherry picked from commit 49fb7248f6ab7de046e2179c7861951ea1169e9b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
index 7c1f6480..6a9956db 100644
--- a/src/client/qwaylandintegration.cpp
+++ b/src/client/qwaylandintegration.cpp
@@ -479,7 +479,7 @@ void QWaylandIntegration::reconfigureInputContext()
}
#endif
- qCDebug(lcQpaWayland) << "using input method:" << inputContext()->metaObject()->className();
+ qCDebug(lcQpaWayland) << "using input method:" << (inputContext() ? inputContext()->metaObject()->className() : "<none>");
}
QWaylandShellIntegration *QWaylandIntegration::createShellIntegration(const QString &integrationName)