Skip to content

Commit 7cbf01f

Browse files
committed
owpythonscript: Terminate qutepart onDeleteWidget
1 parent 8079bd3 commit 7cbf01f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Orange/widgets/data/owpythonscript.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,10 @@ def migrate_settings(cls, settings, version):
972972
for s in scripts] # type: List[_ScriptData]
973973
settings["scriptLibrary"] = library
974974

975+
def onDeleteWidget(self):
976+
self.text.terminate()
977+
super().onDeleteWidget()
978+
975979

976980
if __name__ == "__main__": # pragma: no cover
977981
WidgetPreview(OWPythonScript).run()

0 commit comments

Comments
 (0)