From 823608f27a0af27431e7e66d7c43cde2634b4feb Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 7 Nov 2013 16:27:29 +0000 Subject: [PATCH] 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. --- modules/juce_gui_basics/buttons/juce_Button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/buttons/juce_Button.cpp b/modules/juce_gui_basics/buttons/juce_Button.cpp index cb55e6a33a..9bc863edd6 100644 --- a/modules/juce_gui_basics/buttons/juce_Button.cpp +++ b/modules/juce_gui_basics/buttons/juce_Button.cpp @@ -148,7 +148,7 @@ void Button::setToggleState (const bool shouldBeOn, const NotificationType notif if (lastToggleState) { - turnOffOtherButtonsInGroup (notification); + turnOffOtherButtonsInGroup (dontSendNotification); if (deletionWatcher == nullptr) return;