Fix of a crash when deleting all objects.
This commit is contained in:
parent
3975f4dda0
commit
45a2ced191
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue