Skip to content

Commit

Permalink
Merge pull request #61 from carterturn/carterturn-dropdown-cleaning
Browse files Browse the repository at this point in the history
Remove shot from "select markers" drop down when shot is removed
  • Loading branch information
dihm authored Feb 9, 2024
2 parents 1967748 + 8c27b5e commit 9ce5bea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runviewer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ def on_remove_shots(self, confirm=True):
# unselect shot
item.setCheckState(Qt.Unchecked)
shutter_item.setCheckState(Qt.Unchecked)
# remove shot from markers list
shot_combobox_index = self.ui.markers_comboBox.findText(os.path.basename(shot.path))
self.ui.markers_comboBox.removeItem(shot_combobox_index)
# remove row
self.shot_model.removeRow(row)
del shot
Expand Down

0 comments on commit 9ce5bea

Please sign in to comment.