Skip to content

Commit 6c60ad9

Browse files
committed
Datasets: Fix incorrect output after reloading workflow
1 parent 4e8fec6 commit 6c60ad9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Orange/widgets/data/owdatasets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,10 @@ def __on_selection(self):
639639
di = current.data(Qt.UserRole)
640640
text = description_html(di)
641641
self.descriptionlabel.setText(text)
642-
# for settings do not use os.path.join (Windows separator is different)
643-
self.selected_id = di.file_path[-1]
644642
# do not clear a dataset once you select it if it was unlisted
645643
di.publication_status = Namespace.PUBLISHED
646644
else:
647645
self.descriptionlabel.setText("")
648-
self.selected_id = None
649646

650647
def commit(self):
651648
"""
@@ -658,6 +655,7 @@ def commit(self):
658655
di = self.selected_dataset()
659656
if di is not None:
660657
self.Error.clear()
658+
self.selected_id = di.file_path[-1]
661659

662660
if self.__awaiting_state is not None:
663661
# disconnect from the __commit_complete
@@ -692,6 +690,7 @@ def commit(self):
692690
self.setBlocking(False)
693691
self.commit_cached(di.file_path)
694692
else:
693+
self.selected_id = None
695694
self.load_and_output(None)
696695

697696
@Slot(object)

0 commit comments

Comments
 (0)