From c3f88db392fb8cb600d5c90f67369ab1470f2c4e Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 4 Jan 2021 18:05:20 +0100 Subject: [PATCH] Fix of #5638 --- src/slic3r/GUI/SavePresetDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/SavePresetDialog.cpp b/src/slic3r/GUI/SavePresetDialog.cpp index 65bd3acb90c..e659f8e02a3 100644 --- a/src/slic3r/GUI/SavePresetDialog.cpp +++ b/src/slic3r/GUI/SavePresetDialog.cpp @@ -153,6 +153,11 @@ void SavePresetDialog::Item::update() m_valid_type = NoValid; } + if (m_valid_type == Valid && m_presets->get_preset_name_by_alias(m_preset_name) != m_preset_name) { + info_line = _L("The name cannot be the same as a preset alias name."); + m_valid_type = NoValid; + } + m_valid_label->SetLabel(info_line); m_valid_label->Show(!info_line.IsEmpty());