Skip to content

Commit

Permalink
OWTable: Remove DomainContextHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Apr 19, 2020
1 parent c8ab897 commit 66ac0f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Orange/widgets/data/owtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 66ac0f7

Please sign in to comment.