Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2022-04-07 18:45:52 +0300
committerYuSanka <yusanka@gmail.com>2022-04-07 18:46:22 +0300
commit09051efc771d546a458a20a16a30459b2780e790 (patch)
tree6bbeb34b9e3b1fb7260cf3d5157331aec782fd3c
parentc5fa9aa4cb44e4fe0caf3e77c007d85661a39d3c (diff)
Fix for #8122 - When you change setting with a blank project and go to exit it will ask you to save blank project, if you don't "save", prusa slicer wont' shut downys_7905
and #8076 - PrusaSlicer-2.4.1 does not close with no 3D-Model loaded and unsafed
-rw-r--r--src/slic3r/GUI/Plater.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index 369e8ca26..0f864a6ac 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -1746,8 +1746,11 @@ struct Plater::priv
res = (act == "1") ? wxID_YES : wxID_NO;
if (res == wxID_YES)
- if (!mainframe->save_project_as(project_name))
- res = wxID_CANCEL;
+ if (!mainframe->save_project_as(project_name)) {
+ // Return Cancel only, when we don't remember a choice for closing the application.
+ // Elsewhere it can causes an impossibility to close the application at all.
+ res = act.empty() ? wxID_CANCEL : wxID_NO;
+ }
}
}
return res;