Browse Source

Ensure that ComboBox::menuActive flag is set when calling showPopup()

tags/2021-05-28
ed 7 years ago
parent
commit
f70a450bd4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/widgets/juce_ComboBox.cpp

+ 3
- 0
modules/juce_gui_basics/widgets/juce_ComboBox.cpp View File

@@ -523,6 +523,9 @@ static void comboBoxPopupMenuFinishedCallback (int result, ComboBox* combo)
void ComboBox::showPopup() void ComboBox::showPopup()
{ {
if (! menuActive)
menuActive = true;
auto menu = currentMenu; auto menu = currentMenu;
if (menu.getNumItems() > 0) if (menu.getNumItems() > 0)


Loading…
Cancel
Save