Browse Source

Fix to avoid hitting an assertion when invoking the showBuildTab command directly from CompileEngineChildProcess::handleBuildFailed()

tags/2021-05-28
ed 8 years ago
parent
commit
fceca976d1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp

+ 6
- 0
extras/Projucer/Source/LiveBuildEngine/projucer_CompileEngineClient.cpp View File

@@ -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);


Loading…
Cancel
Save