From 66ac0f74a124adf5e1678ff51dff8afa759a3022 Mon Sep 17 00:00:00 2001 From: janezd Date: Sun, 19 Apr 2020 15:52:48 +0200 Subject: [PATCH] OWTable: Remove DomainContextHandler --- Orange/widgets/data/owtable.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Orange/widgets/data/owtable.py b/Orange/widgets/data/owtable.py index abd2e0f0fb1..e09a4b1097d 100644 --- a/Orange/widgets/data/owtable.py +++ b/Orange/widgets/data/owtable.py @@ -32,7 +32,7 @@ from Orange.statistics import basic_stats from Orange.widgets import gui -from Orange.widgets.settings import Setting, DomainContextHandler +from Orange.widgets.settings import Setting from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets.widget import OWWidget, Input, Output from Orange.widgets.utils import datacaching @@ -425,8 +425,6 @@ class Outputs: auto_commit = Setting(True) color_by_class = Setting(True) - settingsHandler = DomainContextHandler( - match_values=DomainContextHandler.MATCH_VALUES_ALL) selected_rows = Setting([], schema_only=True) selected_cols = Setting([], schema_only=True) @@ -493,7 +491,6 @@ def sizeHint(): @Inputs.data def set_dataset(self, data, tid=None): """Set the input dataset.""" - self.closeContext() if data is not None: datasetname = getattr(data, "name", "Data") if tid in self._inputs: @@ -560,7 +557,6 @@ def update(_): self.set_info(current.input_slot.summary) self.tabs.tabBar().setVisible(self.tabs.count() > 1) - self.openContext(data) if data and self.__pending_selected_rows is not None: self.selected_rows = self.__pending_selected_rows