qcocamenubar: force update after destructor

Task-number: QTCREATORBUG-8785
Change-Id: I1e782cab36f4fea331561f016ea67a73deb63c37
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
Fawzi Mohamed 2013-02-21 14:55:38 +01:00 committed by The Qt Project
parent 1a8f67938c
commit a243251091

View File

@ -77,8 +77,10 @@ QCocoaMenuBar::~QCocoaMenuBar()
[m_nativeMenu release];
static_menubars.removeOne(this);
if (m_window)
if (m_window && m_window->menubar() == this) {
m_window->setMenubar(0);
updateMenuBarImmediately();
}
}
void QCocoaMenuBar::insertMenu(QPlatformMenu *platformMenu, QPlatformMenu *before)