summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-09-12 09:52:03 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-09-12 10:02:22 +0200
commit3ade4d260f3afe160bd593e27e18f1dffdbee398 (patch)
tree7f236ef0a0b2e9be9a2d0e0363ba299f769dc4b2 /src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp
parent3889f37dc790a24355e0eb461d8a51b309dd6245 (diff)
Fix crash in QPlatformInputContextFactory.
If ic is null we shouldn't dereference it. Change-Id: Idf472c799f8207d893f15a55fac330ea20ec451c Reviewed-on: http://codereview.qt-project.org/4639 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp')
-rw-r--r--src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp
index 494431e624..fa16fea628 100644
--- a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp
+++ b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp
@@ -84,7 +84,7 @@ QPlatformInputContext *QPlatformInputContextFactory::create()
QString icString = QString::fromLatin1(getenv("QT_IM_MODULE"));
ic = create(icString);
- qDebug() << ic << ic->isValid();
+
if (ic && ic->isValid())
return ic;