Merge pull request #3276 from smurfix/upstream2
Don't show a confirmation dialog when simply saving a preset
This commit is contained in:
commit
1bbee1c5cc
2 changed files with 3 additions and 3 deletions
|
@ -4914,7 +4914,7 @@ msgid "Cannot overwrite an external profile."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/slic3r/GUI/Tab.cpp:3038
|
#: src/slic3r/GUI/Tab.cpp:3038
|
||||||
msgid "Preset with name \"%1%\" already exist."
|
msgid "Preset with name \"%1%\" already exists."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/slic3r/GUI/Tab.cpp:3039
|
#: src/slic3r/GUI/Tab.cpp:3039
|
||||||
|
|
|
@ -3033,9 +3033,9 @@ void Tab::save_preset(std::string name /*= ""*/)
|
||||||
show_error(this, _(L("Cannot overwrite an external profile.")));
|
show_error(this, _(L("Cannot overwrite an external profile.")));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (existing/* && name != preset.name*/)
|
if (existing && name != preset.name)
|
||||||
{
|
{
|
||||||
wxString msg_text = GUI::from_u8((boost::format(_utf8(L("Preset with name \"%1%\" already exist."))) % name).str());
|
wxString msg_text = GUI::from_u8((boost::format(_utf8(L("Preset with name \"%1%\" already exists."))) % name).str());
|
||||||
msg_text += "\n" + _(L("Replace?"));
|
msg_text += "\n" + _(L("Replace?"));
|
||||||
wxMessageDialog dialog(nullptr, msg_text, _(L("Warning")), wxICON_WARNING | wxYES | wxNO);
|
wxMessageDialog dialog(nullptr, msg_text, _(L("Warning")), wxICON_WARNING | wxYES | wxNO);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue