diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-12 09:52:03 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-09-12 10:02:22 +0200 |
commit | 3ade4d260f3afe160bd593e27e18f1dffdbee398 (patch) | |
tree | 7f236ef0a0b2e9be9a2d0e0363ba299f769dc4b2 | |
parent | 3889f37dc790a24355e0eb461d8a51b309dd6245 (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>
-rw-r--r-- | src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp | 2 |
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; |