--- 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();