1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Made the new jucer support multiple windows.

This commit is contained in:
Julian Storer 2010-06-21 17:34:27 +01:00
parent 5d5aa37475
commit d3cf0870d9
9 changed files with 449 additions and 275 deletions

View file

@ -281,8 +281,12 @@ bool ProjectContentComponent::perform (const InvocationInfo& info)
break;
case CommandIDs::closeProject:
if (((MainWindow*) getParentComponent())->closeCurrentProject())
StoredSettings::getInstance()->setLastProject (File::nonexistent);
{
MainWindow* mw = Component::findParentComponentOfClass ((MainWindow*) 0);
if (mw != 0)
mw->closeCurrentProject();
}
break;