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:
parent
a1a65707f6
commit
ab564b75f1
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ bool ProjectContentComponent::showDocument (OpenDocumentManager::Document* doc,
|
|||
setEditorDocument (doc->createEditor(), doc);
|
||||
}
|
||||
|
||||
if (grabFocus)
|
||||
if (grabFocus && contentViewComponent.isShowing())
|
||||
contentViewComponent.grabKeyboardFocus();
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue