src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp
changeset 28 b7da29130b0e
parent 21 4633027730f5
child 30 80e4d18b72f5
--- a/src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp	Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp	Fri Sep 17 08:32:10 2010 +0300
@@ -57,10 +57,14 @@
 
 void HbInputSpellQuery::launch(QString editorText)
 {
-    HbInputFocusObject *focusObject = 0;
-    if (!mOwner || !(focusObject = mOwner->focusObject())) {
+    if (!mOwner) {
         return;
     }
+    HbInputFocusObject *focusObject = mOwner->focusObject();
+    if (!focusObject) {
+        return;
+    }
+
     mSavedState = mOwner->inputState();
     // close the keypad before showing the spell dialog
     HbVkbHost *vkbHost = focusObject->editorInterface().vkbHost();