Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Don't trigger event for click on menuitem with submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
StableSteady committed Jul 8, 2022
1 parent 40f291a commit 9ce1e0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphics/macgui/macmenu.cpp
Expand Up @@ -1385,6 +1385,10 @@ bool MacMenu::mouseRelease(int x, int y) {

bool haveCallBack = false;
if (_activeItem != -1 && _activeSubItem != -1 && _menustack.back()->items[_activeSubItem]->enabled) {
// no action if item has submenu
if (_menustack.back()->items[_activeSubItem]->submenu) {
return false;
}
if (_menustack.back()->items[_activeSubItem]->unicode) {
if (checkCallback(true)) {
(*_unicodeccallback)(_menustack.back()->items[_activeSubItem]->action,
Expand Down

0 comments on commit 9ce1e0e

Please sign in to comment.