From 2bb14849f46dc0bc49b9b9ee8bc05c7aea509c39 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 2 Sep 2021 08:32:05 +0200 Subject: [PATCH] #6866 - Do not clear plater when pressing Cancel button in the New Project confirmation dialog --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index f8bcafdd8b..f80f2cc3b5 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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");