Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Urlichs <matthias@urlichs.de>2019-12-04 23:12:26 +0300
committerMatthias Urlichs <matthias@urlichs.de>2019-12-04 23:12:26 +0300
commit5320af6c138b084ea0b1b1a26a757b0b39524c2b (patch)
treee252432bf578ac40fc7b7dc1dffd73fb5ae0f83a /src/slic3r/GUI/Tab.cpp
parent26eaa8af1e7596402a3fda4c776e648488b25d82 (diff)
Don't show a confirmation dialog when saving a preset
Diffstat (limited to 'src/slic3r/GUI/Tab.cpp')
-rw-r--r--src/slic3r/GUI/Tab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index ee1750c37..bef177edc 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -3026,7 +3026,7 @@ void Tab::save_preset(std::string name /*= ""*/)
show_error(this, _(L("Cannot overwrite an external profile.")));
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());
msg_text += "\n" + _(L("Replace?"));