#6866 - Do not clear plater when pressing Cancel button in the New Project confirmation dialog

This commit is contained in:
enricoturri1966 2021-09-02 08:32:05 +02:00
parent f6f70f6fd4
commit 2bb14849f4

View File

@ -4759,7 +4759,7 @@ SLAPrint& Plater::sla_print() { return p->sla_print; }
void Plater::new_project()
{
if (!p->save_project_if_dirty())
if (p->save_project_if_dirty() == wxID_CANCEL)
return;
p->select_view_3D("3D");