summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-19 13:03:41 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-19 13:03:41 (GMT)
commit3cfd4e97aa8f5e8c7b9eda9d7847b3f236d3efb5 (patch)
tree5d5ef08d551581a9196d6ce9365ef2b58cd0c78a /src
parentd2a9a4c38df32aed0bbcc21c0f971e1cf799226a (diff)
downloadQt-3cfd4e97aa8f5e8c7b9eda9d7847b3f236d3efb5.zip
Qt-3cfd4e97aa8f5e8c7b9eda9d7847b3f236d3efb5.tar.gz
Qt-3cfd4e97aa8f5e8c7b9eda9d7847b3f236d3efb5.tar.bz2
experiment with QMainWindow
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qsoftkeystack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qsoftkeystack.cpp b/src/gui/widgets/qsoftkeystack.cpp
index f702530..cd17171 100644
--- a/src/gui/widgets/qsoftkeystack.cpp
+++ b/src/gui/widgets/qsoftkeystack.cpp
@@ -120,6 +120,8 @@ void QSoftKeyStack::handleFocusChanged(QWidget *old, QWidget *now)
return;
QWidget *w = qApp->activeWindow();
QMainWindow *mainWindow = qobject_cast<QMainWindow*>(w);
+ if( !mainWindow)
+ return;
QSoftKeyStack* softKeyStack = mainWindow->softKeyStack();
if (old)
softKeyStack->pop();