mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 00:09:03 +08:00
Fix of a crash when deleting all objects.
This commit is contained in:
parent
3975f4dda0
commit
45a2ced191
@ -2052,7 +2052,10 @@ void ObjectList::delete_from_model_and_list(const std::vector<ItemForDelete>& it
|
||||
|
||||
void ObjectList::delete_all_objects_from_list()
|
||||
{
|
||||
m_prevent_list_events = true;
|
||||
this->UnselectAll();
|
||||
m_objects_model->DeleteAll();
|
||||
m_prevent_list_events = false;
|
||||
part_selection_changed();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user