Gui: Hold the GIL when clearing the form attribute
Inside TaskDialogPython::clearForm() the interpreter may execute a lot of things where at the some point the GIL must be hold. This very likely fixes https://github.com/FreeCAD/FreeCAD/issues/22863 @thyssentishman Please check this branch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user