diff --git a/extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp b/extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp index afdf98559e..320da9f26d 100644 --- a/extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp +++ b/extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp @@ -844,6 +844,12 @@ void CompileEngineChildProcess::handleClassListChanged (const ValueTree& newList void CompileEngineChildProcess::handleBuildFailed() { + // check that the command will be processed + auto* mcm = ModalComponentManager::getInstance(); + + if (mcm->getNumModalComponents() != 0 || findProjectContentComponent() == nullptr) + return; + if (errorList.getNumErrors() > 0) ProjucerApplication::getCommandManager().invokeDirectly (CommandIDs::showBuildTab, true);