summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2009-12-21 13:00:50 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2009-12-21 13:00:50 (GMT)
commitbeb16e0d8b3b81a67170c578a72d3816b87569cc (patch)
tree58610478853ebd85226469117dc608a64116c7de /src/gui/kernel/qapplication.cpp
parent69e848ff4a8dad648f706a34b106b8a84155c875 (diff)
parent71ee64f5a44dc310272b14fe6cd913b2e75672ed (diff)
downloadQt-beb16e0d8b3b81a67170c578a72d3816b87569cc.zip
Qt-beb16e0d8b3b81a67170c578a72d3816b87569cc.tar.gz
Qt-beb16e0d8b3b81a67170c578a72d3816b87569cc.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public: Edit focus should not be lost unless by explicit action RVCT 2.2 compiler can't handle static inline functions with templates. Forwarded return value from QtMainWrapper() to E32Main() exit code.
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r--src/gui/kernel/qapplication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index bd13423..4165c95 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -2096,7 +2096,11 @@ void QApplicationPrivate::setFocusWidget(QWidget *focus, Qt::FocusReason reason)
if (prev) {
#ifdef QT_KEYPAD_NAVIGATION
if (QApplication::keypadNavigationEnabled()) {
- if (prev->hasEditFocus() && reason != Qt::PopupFocusReason)
+ if (prev->hasEditFocus() && reason != Qt::PopupFocusReason
+#ifdef Q_OS_SYMBIAN
+ && reason != Qt::ActiveWindowFocusReason
+#endif
+ )
prev->setEditFocus(false);
}
#endif