Fix of a crash when deleting all objects.

This commit is contained in:
bubnikv 2019-05-20 18:49:32 +02:00
parent 3975f4dda0
commit 45a2ced191

View file

@ -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();
}