Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-05-20 19:49:32 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-20 19:49:32 +0300
commit45a2ced191e6d43f99095a392f5d76713b0b9127 (patch)
tree7a5aae54e10e9935abd301641b88042ce98bf8ac
parent3975f4dda020588074822968d86ad46f66c8e337 (diff)
Fix of a crash when deleting all objects.
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp
index 0e69fc3e6..bc6d6213a 100644
--- a/src/slic3r/GUI/GUI_ObjectList.cpp
+++ b/src/slic3r/GUI/GUI_ObjectList.cpp
@@ -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();
}