diff options
author | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-10 10:06:31 (GMT) |
---|---|---|
committer | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-10 10:06:31 (GMT) |
commit | 29189c3112cbfb24d9e5855240e352af18088db9 (patch) | |
tree | f4fadd8d6c8f91616123ae5fde70c24a835bfcc8 | |
parent | 9bdd939c508dfe784402c5c3e85e26d135f7643c (diff) | |
download | Qt-29189c3112cbfb24d9e5855240e352af18088db9.zip Qt-29189c3112cbfb24d9e5855240e352af18088db9.tar.gz Qt-29189c3112cbfb24d9e5855240e352af18088db9.tar.bz2 |
Better handling for setting softkeys
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 3a22ee9..eaa9491 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -11570,7 +11570,7 @@ void QWidget::setSoftKeys(const QList<QAction*> &softKeys) d->softKeys.clear(); d->softKeys = softKeys; - if (QApplication::focusWidget() == this) + if ((QApplication::focusWidget() == this) || (QApplication::focusWidget()==0)) d->setSoftKeys_sys(this->softKeys()); } |