FIX: fix incorrect selection after moving an object to new plate
Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: Ic47a23ca64888f0805c559fff52a50a0812b88b1 (cherry picked from commit d209293fe1409f039c4ec3065a990ce47c9003e8)
This commit is contained in:
parent
46a9df509c
commit
2c61072ec9
1 changed files with 3 additions and 0 deletions
|
@ -646,6 +646,9 @@ void ObjectList::update_plate_values_for_items()
|
|||
if (plate_idx == old_plate_idx)
|
||||
continue;
|
||||
|
||||
// hotfix for wxDataViewCtrl selection not updated after wxDataViewModel::ItemDeleted()
|
||||
Unselect(item);
|
||||
|
||||
bool is_old_parent_expanded = IsExpanded(old_parent);
|
||||
bool is_expanded = IsExpanded(item);
|
||||
m_objects_model->OnPlateChange(plate_idx, item);
|
||||
|
|
Loading…
Reference in a new issue