From 70de44e02c101564921a5787db8cf44f159c78ae Mon Sep 17 00:00:00 2001 From: Rafael Irgolic Date: Fri, 16 Jul 2021 01:15:57 +0100 Subject: [PATCH] owpythonscript: Terminate qutepart onDeleteWidget --- Orange/widgets/data/owpythonscript.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Orange/widgets/data/owpythonscript.py b/Orange/widgets/data/owpythonscript.py index eacde2fd945..281c360b874 100644 --- a/Orange/widgets/data/owpythonscript.py +++ b/Orange/widgets/data/owpythonscript.py @@ -974,6 +974,10 @@ def migrate_settings(cls, settings, version): for s in scripts] # type: List[_ScriptData] settings["scriptLibrary"] = library + def onDeleteWidget(self): + self.text.terminate() + super().onDeleteWidget() + class OWPythonScriptDropHandler(SingleFileDropHandler): WIDGET = OWPythonScript