From bbd620c1cf28672436daafd47f89c03e14c60012 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 22 Oct 2013 16:10:28 +0100 Subject: [PATCH] More tweaking of Button toggle-notification behaviour. --- modules/juce_gui_basics/buttons/juce_Button.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/buttons/juce_Button.cpp b/modules/juce_gui_basics/buttons/juce_Button.cpp index 4b688ee0f4..9eaddebf3a 100644 --- a/modules/juce_gui_basics/buttons/juce_Button.cpp +++ b/modules/juce_gui_basics/buttons/juce_Button.cpp @@ -309,7 +309,8 @@ void Button::internalClickCallback (const ModifierKeys& modifiers) { if (clickTogglesState) setToggleState (radioGroupId != 0 || ! lastToggleState, sendNotification); - else + + if (radioGroupId != 0 || ! clickTogglesState) sendClickMessage (modifiers); }