File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,7 @@ class Outputs:
427427
428428 palette_index = settings .Setting (_default_palette_index )
429429 column_label_pos = settings .Setting (PositionTop )
430+ selected_rows = settings .Setting (None , schema_only = True )
430431
431432 auto_commit = settings .Setting (True )
432433
@@ -454,6 +455,7 @@ class Warning(widget.OWWidget.Warning):
454455
455456 def __init__ (self ):
456457 super ().__init__ ()
458+ self .__pending_selection = self .selected_rows
457459
458460 # set default settings
459461 self .space_x = 10
@@ -719,7 +721,13 @@ def set_dataset(self, data=None):
719721 self .openContext (self .data )
720722 if self .annotation_index >= len (self .annotation_vars ):
721723 self .annotation_index = 0
724+
722725 self .update_heatmaps ()
726+ if data is not None and self .__pending_selection is not None :
727+ self .selection_manager .select_rows (self .__pending_selection )
728+ self .selected_rows = self .__pending_selection
729+ self .__pending_selection = None
730+
723731 self .unconditional_commit ()
724732
725733 def update_heatmaps (self ):
You can’t perform that action at this time.
0 commit comments