diff --git a/kicad/widgets/legacyfiledlg_new_project.h b/kicad/widgets/legacyfiledlg_new_project.h index d1748dfaeb..ab9970475f 100644 --- a/kicad/widgets/legacyfiledlg_new_project.h +++ b/kicad/widgets/legacyfiledlg_new_project.h @@ -42,7 +42,10 @@ public: bool CreateNewDir() const { return m_cbCreateDir->GetValue(); } - static wxWindow* Create( wxWindow* aParent ) { return new DIR_CHECKBOX( aParent ); } + static wxWindow* Create( wxWindow* aParent ) + { + return new LEGACYFILEDLG_NEW_PROJECT( aParent ); + } protected: wxCheckBox* m_cbCreateDir;