Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.8.0, 5.10.1
-
None
-
macOS 10.13
-
-
8447f5f006287887ee2910d9710d7bd867aca6e8
Description
There is a condition under which menu items will be shown disabled in the menu bar while a modal dialog is open, but the actions still trigger when using the shortcut:
- The menu bar needs to be "shared" through all application windows (i.e. have no parent)
- The action must have shortcutContext==Qt::ApplicationShortcut
- The action must be added as a menu item into the shared menu bar
See the attached minimal example.
After removing any one of the conditions above, the behavior will be correct and the action cannot be triggered with the shortcut while a modal dialog is open.
Unfortunately that is the setup we have in Qt Creator (see linked bug).
Attachments
Issue Links
- replaces
-
QTCREATORBUG-15499 Creator crashes in Core::EditorManager::closeEditors after closing the last document
- Closed
- resulted in
-
QTCREATORBUG-15499 Creator crashes in Core::EditorManager::closeEditors after closing the last document
- Closed