From 2da0f125141604dd240429a58c02a1d8621e8046 Mon Sep 17 00:00:00 2001 From: Rafael Irgolic Date: Fri, 16 Jul 2021 17:58:20 +0100 Subject: [PATCH] owpythonscript: Shutdown kernel onDelete Widget --- Orange/widgets/data/owpythonscript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/data/owpythonscript.py b/Orange/widgets/data/owpythonscript.py index 54c68bed336..3684a79a94f 100644 --- a/Orange/widgets/data/owpythonscript.py +++ b/Orange/widgets/data/owpythonscript.py @@ -969,7 +969,8 @@ def migrate_settings(cls, settings, version): settings["scriptLibrary"] = library def onDeleteWidget(self): - self.text.terminate() + self.editor.terminate() + self.shutdown_kernel() super().onDeleteWidget()