From c0a00f4e7016685f4afd34aca3605125dff38c66 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 10 Aug 2021 11:42:38 +0200 Subject: [PATCH] Fix for - Profile save dialog should appear when application is closed and when don't save project is selected Note: show UnsavedChangesDialog even if there is an object in the scene --- src/slic3r/GUI/GUI_App.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 9333efb20..297869ab9 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -2059,7 +2059,7 @@ std::vector> GUI_App::get_selected_presets( // to notify the user whether he is aware that some preset changes will be lost. bool GUI_App::check_and_save_current_preset_changes(const wxString& header) { - if (this->plater()->model().objects.empty() && has_current_preset_changes()) { + if (/*this->plater()->model().objects.empty() && */has_current_preset_changes()) { UnsavedChangesDialog dlg(header); if (wxGetApp().app_config->get("default_action_on_close_application") == "none" && dlg.ShowModal() == wxID_CANCEL) return false;