mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Introjucer: avoided problems when closing a GUI comp which is a sub-component of another currently-loaded GUI component.
This commit is contained in:
parent
59b9b0ccaf
commit
8e4825e7bd
11 changed files with 38 additions and 17 deletions
|
|
@ -39,7 +39,7 @@ DocumentEditorComponent::~DocumentEditorComponent()
|
|||
IntrojucerApp::getApp().openDocumentManager.removeListener (this);
|
||||
}
|
||||
|
||||
void DocumentEditorComponent::documentAboutToClose (OpenDocumentManager::Document* closingDoc)
|
||||
bool DocumentEditorComponent::documentAboutToClose (OpenDocumentManager::Document* closingDoc)
|
||||
{
|
||||
if (document == closingDoc)
|
||||
{
|
||||
|
|
@ -48,6 +48,8 @@ void DocumentEditorComponent::documentAboutToClose (OpenDocumentManager::Documen
|
|||
if (ProjectContentComponent* pcc = findParentComponentOfClass<ProjectContentComponent>())
|
||||
pcc->hideDocument (document);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void DocumentEditorComponent::setEditedState (bool /*hasBeenEdited*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue