File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments