FIX: [STUDIO-3478] take Cancel as No when saving new project
Change-Id: I6d4b1844861c4460d09ef793183bca6694845579
This commit is contained in:
parent
29b61a1da0
commit
d087b6c94a
1 changed files with 6 additions and 2 deletions
|
@ -9448,8 +9448,12 @@ int GUI::Plater::close_with_confirm(std::function<bool(bool)> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue