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:
parent
728e2dbe82
commit
fceca976d1
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue