From d087b6c94a80b96181231eef37212c360c99864a Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Wed, 28 Jun 2023 19:36:15 +0800 Subject: [PATCH] FIX: [STUDIO-3478] take Cancel as No when saving new project Change-Id: I6d4b1844861c4460d09ef793183bca6694845579 --- src/slic3r/GUI/Plater.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index b7c235652..4b1c6f62c 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -9448,8 +9448,12 @@ int GUI::Plater::close_with_confirm(std::function second_check) wxGetApp().app_config->set("save_project_choise", result == wxID_YES ? "yes" : "no"); if (result == wxID_YES) { result = save_project(); - if (result == wxID_CANCEL) - return result; + if (result == wxID_CANCEL) { + if (choise.empty()) + return result; + else + result = wxID_NO; + } } }