Skip to content

Commit c15fc9f

Browse files
committed
Remove shots from markers dropdown when they are deleted.
1 parent 9e3122d commit c15fc9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runviewer/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,9 @@ def on_remove_shots(self, confirm=True):
696696
# unselect shot
697697
item.setCheckState(Qt.Unchecked)
698698
shutter_item.setCheckState(Qt.Unchecked)
699+
# remove shot from markers list
700+
shot_combobox_index = self.ui.markers_comboBox.findText(os.path.basename(shot.path))
701+
self.ui.markers_comboBox.removeItem(shot_combobox_index)
699702
# remove row
700703
self.shot_model.removeRow(row)
701704
del shot

0 commit comments

Comments
 (0)