Skip to content

Commit

Permalink
Table: Keep pending selection if data is None
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Dec 19, 2019
1 parent a20b32f commit effd683
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Orange/widgets/data/owtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,20 +519,17 @@ def update(_):
if current is not None:
# pylint: disable=protected-access
self.set_info(current._input_slot.summary)
else:
self.__pending_selected_rows = None
self.__pending_selected_cols = None

self.tabs.tabBar().setVisible(self.tabs.count() > 1)
self.openContext(data)

if self.__pending_selected_rows is not None:
if data and self.__pending_selected_rows is not None:
self.selected_rows = self.__pending_selected_rows
self.__pending_selected_rows = None
else:
self.selected_rows = []

if self.__pending_selected_cols is not None:
if data and self.__pending_selected_cols is not None:
self.selected_cols = self.__pending_selected_cols
self.__pending_selected_cols = None
else:
Expand Down

0 comments on commit effd683

Please sign in to comment.