From 577632d8922ad764e5a1dd93e76bfa73f1118d15 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 4 Oct 2021 16:20:46 +0200 Subject: [PATCH] Check unsaved preset changes only if project is dirty and it wasn't saved --- src/slic3r/GUI/MainFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 6538c0a9a..66e22c694 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -228,7 +228,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S return; } // check unsaved changes only if project wasn't saved - else if (saved_project == wxID_NO && event.CanVeto() && + else if (plater()->is_project_dirty() && saved_project == wxID_NO && event.CanVeto() && !wxGetApp().check_and_save_current_preset_changes(_L("PrusaSlicer is closing"), _L("Closing PrusaSlicer while some presets are modified."))) { event.Veto(); return;