Bugfix: the object parts editor is opened in invalid status until user clicks on a tree list item. #2762

This commit is contained in:
Alessandro Ranellucci 2015-03-30 20:27:18 +02:00
parent ce676a7ca7
commit 901716adc8

View file

@ -136,9 +136,13 @@ sub reload_tree {
}
$tree->ExpandAll;
# This will trigger the selection_changed() event
Slic3r::GUI->CallAfter(sub {
$self->{tree}->SelectItem($selectedId);
# SelectItem() should trigger EVT_TREE_SEL_CHANGED as per wxWidgets docs,
# but in fact it doesn't if the given item is already selected (this happens
# on first load)
$self->selection_changed;
});
}