Browse Source

BailOutChecker: Add checks after callbacks in Slider and ComboBox

Co-authored-by: Roland Rabien <figbug@gmail.com>
v7.0.9
reuk 2 years ago
parent
commit
b324a50e82
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/widgets/juce_ComboBox.cpp
  2. +3
    -0
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 3
- 0
modules/juce_gui_basics/widgets/juce_ComboBox.cpp View File

@@ -630,6 +630,9 @@ void ComboBox::handleAsyncUpdate()
if (onChange != nullptr) if (onChange != nullptr)
onChange(); onChange();
if (checker.shouldBailOut())
return;
if (auto* handler = getAccessibilityHandler()) if (auto* handler = getAccessibilityHandler())
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged); handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
} }


+ 3
- 0
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -363,6 +363,9 @@ public:
if (owner.onValueChange != nullptr) if (owner.onValueChange != nullptr)
owner.onValueChange(); owner.onValueChange();
if (checker.shouldBailOut())
return;
if (auto* handler = owner.getAccessibilityHandler()) if (auto* handler = owner.getAccessibilityHandler())
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged); handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
} }


Loading…
Cancel
Save