From c0ccc756e4ba0e974ee71f39657bae9c1b616281 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 30 Mar 2015 14:13:57 +0100 Subject: [PATCH] Made it possible to build plugins with JUCE_MODAL_LOOPS_PERMITTED turned off --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm index 2f60dd5863..02e94096e0 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm @@ -216,6 +216,7 @@ void detachComponentFromWindowRef (Component* comp, void* window, bool isNSView) else [hostWindow release]; + #if JUCE_MODAL_LOOPS_PERMITTED static bool needToRunMessageLoop = ! getHostType().isReaper(); // The event loop needs to be run between closing the window and deleting the plugin, @@ -226,6 +227,7 @@ void detachComponentFromWindowRef (Component* comp, void* window, bool isNSView) if (needToRunMessageLoop) for (int i = 20; --i >= 0;) MessageManager::getInstance()->runDispatchLoopUntil (1); + #endif return; }