From e2c776862cb9bdf5b651c15934f7e92fe11b989b Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 16 Apr 2010 14:27:57 +0200 Subject: Fix menu bar visibility. We no longer show the menu bar if it is not native and doesn't have a parent widget. --- src/gui/widgets/qmenubar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp index a13a2fa..ef37fd1 100644 --- a/src/gui/widgets/qmenubar.cpp +++ b/src/gui/widgets/qmenubar.cpp @@ -1931,9 +1931,9 @@ void QMenuBar::setNativeMenuBar(bool nativeMenuBar) d->macCreateMenuBar(parentWidget()); } macUpdateMenuBar(); - updateGeometry(); - setVisible(false); - setVisible(true); + updateGeometry(); + if (!d->nativeMenuBar && parentWidget()) + setVisible(true); #endif } } -- cgit v0.12