FIX: [STUDIO-4935] plate name edit in object list

Change-Id: I271fa217281d0c7ceca61166497136628a66681e
Jira: STUDIO-4935
This commit is contained in:
chunmao.guo 2023-11-03 09:51:01 +08:00 committed by Lane.Wei
parent b377f660a8
commit 020338b191
3 changed files with 5 additions and 4 deletions

View file

@ -5584,7 +5584,7 @@ void GUI::ObjectList::OnStartEditing(wxDataViewEvent &event)
int plate_idx = node->GetPlateIdx();
if (plate_idx >= 0) {
auto plate = wxGetApp().plater()->get_partplate_list().get_plate(plate_idx);
m_objects_model->SetName(plate->get_plate_name(), GetSelection());
m_objects_model->SetName(from_u8(plate->get_plate_name()), GetSelection());
}
}
}