summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_s60.cpp
diff options
context:
space:
mode:
authorJanne Koskinen <janne.p.koskinen@digia.com>2009-06-17 13:51:46 (GMT)
committerJanne Koskinen <janne.p.koskinen@digia.com>2009-06-17 13:51:46 (GMT)
commitd9911390f17426801f553cb82654e102fe0400b9 (patch)
tree5c0dd218d44d0989761c01007d128de2d0e60f4c /src/gui/kernel/qapplication_s60.cpp
parent75140c4776934744c37a34b10b7d4b8665aa4dc1 (diff)
parent06346d241d3a66bb488addcacae8a6e0d0d6e59c (diff)
downloadQt-d9911390f17426801f553cb82654e102fe0400b9.zip
Qt-d9911390f17426801f553cb82654e102fe0400b9.tar.gz
Qt-d9911390f17426801f553cb82654e102fe0400b9.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 9a2bbe6..3bd6e6b 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1075,9 +1075,10 @@ void QApplication::symbianHandleCommand(int command)
default:
if (command >= SOFTKEYSTART && command <= SOFTKEYEND) {
int index= command-SOFTKEYSTART;
- QWidget* focused = QApplication::focusWidget();
- const QList<QAction*>& softKeys = focused->softKeys();
- Q_ASSERT(index<softKeys.count());
+ QWidget *focused = QApplication::focusWidget();
+ QWidget *softKeySource = focused ? focused : QApplication::activeWindow();
+ const QList<QAction*>& softKeys = softKeySource->softKeys();
+ Q_ASSERT(index < softKeys.count());
softKeys.at(index)->activate(QAction::Trigger);
}
else