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

Introjucer: on windows, stopped the cancel button of the new project wizard from closing the app.

This commit is contained in:
jules 2013-10-15 17:18:07 +01:00
parent b11a88bc01
commit 40ca59a54e

View file

@ -616,7 +616,14 @@ struct NewProjectWizardClasses
else
{
if (MainWindow* mw = dynamic_cast<MainWindow*> (getTopLevelComponent()))
IntrojucerApp::getApp().mainWindowList.closeWindow (mw);
{
#if ! JUCE_MAC
if (IntrojucerApp::getApp().mainWindowList.windows.size() == 1)
mw->setProject (nullptr);
else
#endif
IntrojucerApp::getApp().mainWindowList.closeWindow (mw);
}
}
}