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
No known key found for this signature in database
GPG Key ID: FCB43929F012EE5C
2 changed files with
6 additions and
0 deletions
-
modules/juce_gui_basics/widgets/juce_ComboBox.cpp
-
modules/juce_gui_basics/widgets/juce_Slider.cpp
|
|
@@ -630,6 +630,9 @@ void ComboBox::handleAsyncUpdate() |
|
|
|
if (onChange != nullptr)
|
|
|
|
onChange();
|
|
|
|
|
|
|
|
if (checker.shouldBailOut())
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (auto* handler = getAccessibilityHandler())
|
|
|
|
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
|
|
|
|
}
|
|
|
|
|
|
@@ -363,6 +363,9 @@ public: |
|
|
|
if (owner.onValueChange != nullptr)
|
|
|
|
owner.onValueChange();
|
|
|
|
|
|
|
|
if (checker.shouldBailOut())
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (auto* handler = owner.getAccessibilityHandler())
|
|
|
|
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
|
|
|
|
}
|
|
|
|