diff --git a/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_1.mm b/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_1.mm index b1c77944c2..93967ab583 100644 --- a/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_1.mm +++ b/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_1.mm @@ -1843,7 +1843,8 @@ public: { // there's some kind of component currently modal, but the host // is trying to delete our plugin.. - jassert (Component::getCurrentlyModalComponent() == nullptr); + jassert (ModalComponentManager::getInstanceWithoutCreating() == nullptr + || Component::getCurrentlyModalComponent() == nullptr); } } };