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

Yet another micro-tweak to button callback behaviour - prevent radio-group auto-toggle buttons sending events to other group buttons when they get turned off.

This commit is contained in:
jules 2013-11-07 16:27:29 +00:00
parent 44ba3f52fe
commit 823608f27a

View file

@ -148,7 +148,7 @@ void Button::setToggleState (const bool shouldBeOn, const NotificationType notif
if (lastToggleState)
{
turnOffOtherButtonsInGroup (notification);
turnOffOtherButtonsInGroup (dontSendNotification);
if (deletionWatcher == nullptr)
return;