Skip to content

Commit

Permalink
Datasets: Fix incorrect output after reloading workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Nov 15, 2024
1 parent 9505f99 commit 5fff65e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Orange/widgets/data/owdatasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,10 @@ def __on_selection(self):
di = current.data(Qt.UserRole)
text = description_html(di)
self.descriptionlabel.setText(text)
# for settings do not use os.path.join (Windows separator is different)
self.selected_id = di.file_path[-1]
# do not clear a dataset once you select it if it was unlisted
di.publication_status = Namespace.PUBLISHED
else:
self.descriptionlabel.setText("")
self.selected_id = None

def commit(self):
"""
Expand All @@ -658,6 +655,7 @@ def commit(self):
di = self.selected_dataset()
if di is not None:
self.Error.clear()
self.selected_id = di.file_path[-1]

if self.__awaiting_state is not None:
# disconnect from the __commit_complete
Expand Down Expand Up @@ -692,6 +690,7 @@ def commit(self):
self.setBlocking(False)
self.commit_cached(di.file_path)
else:
self.selected_id = None
self.load_and_output(None)

@Slot(object)
Expand Down

0 comments on commit 5fff65e

Please sign in to comment.