summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmenu_symbian.cpp
diff options
context:
space:
mode:
authorMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-11 14:58:15 (GMT)
committerMarkku Luukkainen <markku.luukkainen@digia.com>2009-05-11 14:58:15 (GMT)
commit7aec9035cb0e23eecfdcec9e441092a485ca7f0a (patch)
treefde97365fadd9f72de68ec452323e180f4e0d008 /src/gui/widgets/qmenu_symbian.cpp
parent9cba64ccf1a945417a980b4a933ef79afdc2bd21 (diff)
downloadQt-7aec9035cb0e23eecfdcec9e441092a485ca7f0a.zip
Qt-7aec9035cb0e23eecfdcec9e441092a485ca7f0a.tar.gz
Qt-7aec9035cb0e23eecfdcec9e441092a485ca7f0a.tar.bz2
Fix for disappearing options menu button when starting some of
the example applications
Diffstat (limited to 'src/gui/widgets/qmenu_symbian.cpp')
-rw-r--r--src/gui/widgets/qmenu_symbian.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenu_symbian.cpp b/src/gui/widgets/qmenu_symbian.cpp
index 438bfd5..86affe3 100644
--- a/src/gui/widgets/qmenu_symbian.cpp
+++ b/src/gui/widgets/qmenu_symbian.cpp
@@ -53,7 +53,7 @@ bool menuExists()
{
QWidget *w = qApp->activeWindow();
QMenuBarPrivate *mb = menubars()->value(w);
- if (!mb)
+ if ((!mb) && !menubars()->count())
return false;
return true;
}