From fdcebfe6a2a87faa2560829b6514756a68391751 Mon Sep 17 00:00:00 2001 From: Agnieszka Janowicz Date: Thu, 13 Jun 2019 12:39:03 +0100 Subject: [PATCH] BLOCKS: Ensure that the program loaded callback is called when program passed to setProgram is identical to what's already loaded --- .../topology/internal/juce_BlockImplementation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp b/modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp index f373f51dd0..89418d142a 100644 --- a/modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp +++ b/modules/juce_blocks_basics/topology/internal/juce_BlockImplementation.cpp @@ -271,8 +271,6 @@ public: return Result::ok(); } - stopTimer(); - { std::unique_ptr p (newProgram); @@ -284,6 +282,8 @@ public: std::swap (program, p); } + stopTimer(); + programSize = 0; isProgramLoaded = shouldSaveProgramAsDefault = false;