diff --git a/src/Gui/TaskView/TaskDialogPython.cpp b/src/Gui/TaskView/TaskDialogPython.cpp index 5bf0e2019d..fc74eb20ed 100644 --- a/src/Gui/TaskView/TaskDialogPython.cpp +++ b/src/Gui/TaskView/TaskDialogPython.cpp @@ -634,6 +634,7 @@ void TaskDialogPython::appendForm(QWidget* form, const QPixmap& icon) void TaskDialogPython::clearForm() { + Base::PyGILStateLocker lock; try { // The widgets stored in the 'form' attribute will be deleted. // Thus, set this attribute to None to make sure that when using