From 21b75b3470339d8847b76d39d6ffaa168188604d Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 7 Dec 2007 16:17:12 +0000 Subject: [PATCH] --- .../application/juce_ApplicationCommandManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/juce_appframework/application/juce_ApplicationCommandManager.cpp b/src/juce_appframework/application/juce_ApplicationCommandManager.cpp index 3f3d98aeb1..9a785dee2f 100644 --- a/src/juce_appframework/application/juce_ApplicationCommandManager.cpp +++ b/src/juce_appframework/application/juce_ApplicationCommandManager.cpp @@ -38,6 +38,7 @@ BEGIN_JUCE_NAMESPACE #include "../gui/components/keyboard/juce_KeyPressMappingSet.h" #include "../gui/components/windows/juce_ResizableWindow.h" #include "../gui/components/juce_Desktop.h" +#include "../events/juce_MessageManager.h" //============================================================================== @@ -192,7 +193,7 @@ bool ApplicationCommandManager::invoke (const ApplicationCommandTarget::Invocati { // This call isn't thread-safe for use from a non-UI thread without locking the message // manager first.. - checkMessageManagerIsLocked + jassert (MessageManager::getInstance()->currentThreadHasLockedMessageManager()); ApplicationCommandTarget* const target = getFirstCommandTarget (info_.commandID);