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
This commit is contained in:
parent
a5ebd45d4d
commit
c0a00f4e70
1 changed files with 1 additions and 1 deletions
|
@ -2059,7 +2059,7 @@ std::vector<std::pair<unsigned int, std::string>> GUI_App::get_selected_presets(
|
||||||
// to notify the user whether he is aware that some preset changes will be lost.
|
// 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)
|
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);
|
UnsavedChangesDialog dlg(header);
|
||||||
if (wxGetApp().app_config->get("default_action_on_close_application") == "none" && dlg.ShowModal() == wxID_CANCEL)
|
if (wxGetApp().app_config->get("default_action_on_close_application") == "none" && dlg.ShowModal() == wxID_CANCEL)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue