Browse Source

Ensure that PopupMenu section headers aren't selectable

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

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

@@ -1589,6 +1589,7 @@ void PopupMenu::addSeparator()
void PopupMenu::addSectionHeader (String title)
{
Item i (std::move (title));
i.itemID = 0;
i.isSectionHeader = true;
addItem (std::move (i));
}


Loading…
Cancel
Save