Skip to content

Commit

Permalink
Fix of #5638
Browse files Browse the repository at this point in the history
  • Loading branch information
YuSanka committed Jan 4, 2021
1 parent c747502 commit c3f88db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/slic3r/GUI/SavePresetDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit c3f88db

Please sign in to comment.