1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Ensure that PopupMenu section headers aren't selectable

This commit is contained in:
ed 2019-08-27 14:30:50 +01:00
parent 84849f8808
commit 3a4c0f9012

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));
}