1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

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

This commit is contained in:
ed 2017-05-02 15:28:39 +01:00
parent 728e2dbe82
commit fceca976d1

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