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:
parent
1a8f67938c
commit
a243251091
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user