summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-12-12 15:32:59 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-14 23:26:15 +0100
commit3b2d99a5c8b4c17f33ff4a03073bc602b7495b2b (patch)
tree625be0b4a24dab8fcd3dbb329ce60d907f536130 /src
parent56c4ddfdf62ff6b71ce3df680bdaca01012e13f4 (diff)
QIBusPlatformInputContext: Fix a crash in tst_qinputpanel::update.
Change-Id: If50c442958b6f25f17325f7792bb3f882e4b13e7 Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp b/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp
index 6ab142ce25..502b415079 100644
--- a/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp
+++ b/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp
@@ -160,6 +160,8 @@ void QIBusPlatformInputContext::cursorRectChanged()
return;
QWindow *inputWindow = qApp->inputPanel()->inputWindow();
+ if (!inputWindow)
+ return;
r.moveTopLeft(inputWindow->mapToGlobal(r.topLeft()));
if (debug)
qDebug() << "microFocus" << r;