Gui: Fix segfault in TaskAttacher on cancel
This commit is contained in:
committed by
Chris Hennes
parent
1f32565819
commit
51650e7bcc
@@ -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