summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp8
-rw-r--r--tests/auto/qapplication/tst_qapplication.cpp8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index b198ae1..fc55a0f 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -98,7 +98,9 @@ QCoeFepInputContext::~QCoeFepInputContext()
void QCoeFepInputContext::reset()
{
- CCoeEnv::Static()->Fep()->CancelTransaction();
+ CCoeFep* fep = CCoeEnv::Static()->Fep();
+ if (fep)
+ fep->CancelTransaction();
}
void QCoeFepInputContext::ReportAknEdStateEvent(MAknEdStateObserver::EAknEdwinStateEvent aEventType)
@@ -626,7 +628,9 @@ void QCoeFepInputContext::commitCurrentString(bool triggeredBySymbian)
m_isEditing = false;
if (!triggeredBySymbian) {
- CCoeEnv::Static()->Fep()->CancelTransaction();
+ CCoeFep* fep = CCoeEnv::Static()->Fep();
+ if (fep)
+ fep->CancelTransaction();
}
}
diff --git a/tests/auto/qapplication/tst_qapplication.cpp b/tests/auto/qapplication/tst_qapplication.cpp
index 6ffefc5..2ba5239 100644
--- a/tests/auto/qapplication/tst_qapplication.cpp
+++ b/tests/auto/qapplication/tst_qapplication.cpp
@@ -1148,15 +1148,15 @@ void DeleteLaterWidget::runTest()
connect(w, SIGNAL(destroyed()), this, SLOT(childDeleted()));
w->deleteLater();
- Q_ASSERT(!child_deleted);
+ QVERIFY(!child_deleted);
QDialog dlg;
QTimer::singleShot(500, &dlg, SLOT(reject()));
dlg.exec();
- Q_ASSERT(!child_deleted);
+ QVERIFY(!child_deleted);
app->processEvents();
- Q_ASSERT(!child_deleted);
+ QVERIFY(!child_deleted);
QTimer::singleShot(500, this, SLOT(checkDeleteLater()));
@@ -1167,7 +1167,7 @@ void DeleteLaterWidget::runTest()
void DeleteLaterWidget::checkDeleteLater()
{
- Q_ASSERT(child_deleted);
+ QVERIFY(child_deleted);
close();
}