diff --git a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp index 83329ef46c4b62bcdee82bd20084ede6cd596067..22491c421c7d3ef3804a0a48bfb665f1d38220d5 100644 --- a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp +++ b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp @@ -402,6 +402,7 @@ void MenuActionContainer::removeMenu(QMenu *menu) m_menu->removeAction(menu->menuAction()); } +#ifdef Q_OS_MAC static bool menuInMenuBar(const QMenu *menu) { foreach (const QWidget *widget, menu->menuAction()->associatedWidgets()) { @@ -410,6 +411,7 @@ static bool menuInMenuBar(const QMenu *menu) } return false; } +#endif bool MenuActionContainer::updateInternal() {