mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: [STUDIO-4935] plate name edit in object list
Change-Id: I271fa217281d0c7ceca61166497136628a66681e Jira: STUDIO-4935
This commit is contained in:
@@ -225,7 +225,8 @@ wxWindow* BitmapTextRenderer::CreateEditorCtrl(wxWindow* parent, wxRect labelRec
|
||||
bool BitmapTextRenderer::GetValueFromEditorCtrl(wxWindow* ctrl, wxVariant& value)
|
||||
{
|
||||
wxTextCtrl* text_editor = wxDynamicCast(ctrl, wxTextCtrl);
|
||||
if (!text_editor || text_editor->GetValue().IsEmpty())
|
||||
auto item = GetView()->GetModel()->GetParent(m_item);
|
||||
if (!text_editor || (item.IsOk() && text_editor->GetValue().IsEmpty()))
|
||||
return false;
|
||||
|
||||
m_was_unusable_symbol = Slic3r::GUI::Plater::has_illegal_filename_characters(text_editor->GetValue());
|
||||
|
||||
Reference in New Issue
Block a user