1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-29 02:40:05 +00:00

Projucer: Don't steal focus when live-build errors occur

This commit is contained in:
ed 2017-11-26 15:52:42 +00:00
parent 9e74c7ce6b
commit bd99e27f91

View file

@ -874,15 +874,6 @@ void CompileEngineChildProcess::handleClassListChanged (const ValueTree& newList
void CompileEngineChildProcess::handleBuildFailed()
{
auto* mcm = ModalComponentManager::getInstance();
auto* pcc = findProjectContentComponent();
if (mcm->getNumModalComponents() > 0 || pcc == nullptr || pcc->getCurrentTabIndex() == 1)
return;
if (errorList.getNumErrors() > 0)
ProjucerApplication::getCommandManager().invokeDirectly (CommandIDs::showBuildTab, true);
ProjucerApplication::getCommandManager().commandStatusChanged();
}