From 4cef02477d6f50c95889e7be23596bafb6cf94f3 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 6 Feb 2019 11:01:46 +0000 Subject: [PATCH] Windows: Fixed a bug when using DragAndDropContainer in a plug-in after closing and re-opening --- modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp b/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp index b7f674d774..2ba60ff4fa 100644 --- a/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp +++ b/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp @@ -292,14 +292,14 @@ namespace DragAndDropHelpers clearSingletonInstance(); } - juce_DeclareSingleton_SingleThreaded (ThreadPoolHolder, true) + JUCE_DECLARE_SINGLETON_SINGLETHREADED (ThreadPoolHolder, false) // We need to make sure we don't do simultaneous text and file drag and drops, // so use a pool that can only run a single job. ThreadPool pool { 1 }; }; - juce_ImplementSingleton_SingleThreaded (ThreadPoolHolder) + JUCE_IMPLEMENT_SINGLETON (ThreadPoolHolder) } //==============================================================================