diff --git a/src/plugins/platforms/cocoa/qcocoamenuloader.mm b/src/plugins/platforms/cocoa/qcocoamenuloader.mm index ba37b40f5e..50072b4e51 100644 --- a/src/plugins/platforms/cocoa/qcocoamenuloader.mm +++ b/src/plugins/platforms/cocoa/qcocoamenuloader.mm @@ -320,13 +320,8 @@ - (BOOL)validateMenuItem:(NSMenuItem*)menuItem { if (menuItem.action == @selector(hideOtherApplications:) - || menuItem.action == @selector(unhideAllApplications:)) - return [NSApp validateMenuItem:menuItem]; - - if (menuItem.action == @selector(hide:)) { - auto *w = QCocoaIntegration::instance()->activePopupWindow(); - if (w && (w->window()->type() != Qt::ToolTip)) - return NO; + || menuItem.action == @selector(unhideAllApplications:) + || menuItem.action == @selector(hide:)) { return [NSApp validateMenuItem:menuItem]; }