Gui: Fix segfault in TaskAttacher on cancel
This commit is contained in:
committed by
Chris Hennes
parent
967342ef34
commit
ee8818431c
@@ -254,6 +254,8 @@ void TaskAttacher::objectDeleted(const Gui::ViewProviderDocumentObject& view)
|
||||
{
|
||||
if (ViewProvider == &view) {
|
||||
ViewProvider = nullptr;
|
||||
// if the object gets deleted we need to clear all overrides so it does not segfault
|
||||
overrides.clear();
|
||||
this->setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user