From de28787c25ef6c8d4937b3d6d792ca8bf026ff21 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 5 Sep 2018 14:45:56 +0100 Subject: [PATCH] Don't cancel ThreadWithProgressWindow when it isn't the foremost modal component to allow multiple windows --- .../juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp b/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp index 0c568e8838..cf6358cbad 100644 --- a/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp @@ -87,7 +87,7 @@ void ThreadWithProgressWindow::timerCallback() { bool threadStillRunning = isThreadRunning(); - if (! (threadStillRunning && alertWindow->isCurrentlyModal())) + if (! (threadStillRunning && alertWindow->isCurrentlyModal (false))) { stopTimer(); stopThread (timeOutMsWhenCancelling);