Browse Source

Fixed an issue where PopupMenus with a parent component were not being dismissed by dismissAllActiveMenus()

tags/2021-05-28
ed 6 years ago
parent
commit
a90940283c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/menus/juce_PopupMenu.cpp

+ 1
- 1
modules/juce_gui_basics/menus/juce_PopupMenu.cpp View File

@@ -258,10 +258,10 @@ struct MenuWindow : public Component
| ComponentPeer::windowIgnoresKeyPresses | ComponentPeer::windowIgnoresKeyPresses
| lf.getMenuWindowFlags()); | lf.getMenuWindowFlags());
getActiveWindows().add (this);
Desktop::getInstance().addGlobalMouseListener (this); Desktop::getInstance().addGlobalMouseListener (this);
} }
getActiveWindows().add (this);
lf.preparePopupMenuWindow (*this); lf.preparePopupMenuWindow (*this);
getMouseState (Desktop::getInstance().getMainMouseSource()); // forces creation of a mouse source watcher for the main mouse getMouseState (Desktop::getInstance().getMainMouseSource()); // forces creation of a mouse source watcher for the main mouse


Loading…
Cancel
Save