Browse Source

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

tags/2021-05-28
jules 12 years ago
parent
commit
40ca59a54e
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      extras/Introjucer/Source/Project/jucer_NewProjectWizard.cpp

+ 8
- 1
extras/Introjucer/Source/Project/jucer_NewProjectWizard.cpp 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);
}
}
}


Loading…
Cancel
Save