From 2c61072ec917430f516292bf5523bd63508baf2e Mon Sep 17 00:00:00 2001 From: "yifan.wu" Date: Wed, 27 Jul 2022 17:37:50 +0800 Subject: [PATCH] FIX: fix incorrect selection after moving an object to new plate Signed-off-by: yifan.wu Change-Id: Ic47a23ca64888f0805c559fff52a50a0812b88b1 (cherry picked from commit d209293fe1409f039c4ec3065a990ce47c9003e8) --- src/slic3r/GUI/GUI_ObjectList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index ed55b8ad0..162d9fd75 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -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);