Browse Source

Avoid hitting an assertion when calling Toolbar::showMissingItems() with JUCE_MODAL_LOOPS_PERMITTED=0

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

+ 1
- 1
modules/juce_gui_basics/widgets/juce_Toolbar.cpp View File

@@ -543,7 +543,7 @@ void Toolbar::showMissingItems()
{
PopupMenu m;
m.addCustomItem (1, new MissingItemsComponent (*this, getThickness()));
m.showMenuAsync (PopupMenu::Options().withTargetComponent (missingItemsButton.get()), nullptr);
m.showMenuAsync (PopupMenu::Options().withTargetComponent (missingItemsButton.get()), [] (int) {});
}
}


Loading…
Cancel
Save