1
0
Fork 0
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:
jules 2013-10-15 20:53:28 +01:00
parent 59b9b0ccaf
commit 8e4825e7bd
11 changed files with 38 additions and 17 deletions

View file

@ -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*/)