1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00

Projucer: Fixed an assertion caused by the project content component trying to grab keyboard focus when not visible

This commit is contained in:
ed 2021-05-10 14:17:42 +01:00
parent a1a65707f6
commit ab564b75f1

View file

@ -347,7 +347,7 @@ bool ProjectContentComponent::showDocument (OpenDocumentManager::Document* doc,
setEditorDocument (doc->createEditor(), doc);
}
if (grabFocus)
if (grabFocus && contentViewComponent.isShowing())
contentViewComponent.grabKeyboardFocus();
return true;