From edc1a8ac6682e1f2807a33ccd97a1eb44825a9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Thu, 9 Nov 2023 12:02:05 +0100 Subject: [PATCH] qtenv: Remove another menu bar related workaround on macOS from Qtenv --- src/qtenv/qtenvapp.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/qtenv/qtenvapp.cc b/src/qtenv/qtenvapp.cc index b9a2aa9413..4e89f850e2 100644 --- a/src/qtenv/qtenvapp.cc +++ b/src/qtenv/qtenvapp.cc @@ -1781,16 +1781,6 @@ void QtenvApp::initialSetUpConfiguration() // defaultConfig and runFilter are what were specified in either the omnetpp.ini file or as a command line argument RunSelectionDialog dialog(ini, opt->defaultConfig, opt->runFilter, mainWindow); -#ifdef QT_OS_MAC - // Makes the Apple Menu work on Mac (together with TransformProcessType) right - // after launch even if there is no need to actually pick a configuration. - // Even if the dialog doesn't really appear on the screen (in fact I hope it - // doesn't, that would cause flickering), if shown first, it will do some - // magic with window focus passing when destroyed, which is similar to - // switching apps, which then makes the global menu work for some reason. - dialog.show(); -#endif - // only show if needed, but if cancelled, stop. if (dialog.needsShowing() && !dialog.exec()) return;