Skip to content

Commit 9ce5bea

Browse files
authored
Merge pull request #61 from carterturn/carterturn-dropdown-cleaning
Remove shot from "select markers" drop down when shot is removed
2 parents 1967748 + 8c27b5e commit 9ce5bea

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
@@ -697,6 +697,9 @@ def on_remove_shots(self, confirm=True):
697697
# unselect shot
698698
item.setCheckState(Qt.Unchecked)
699699
shutter_item.setCheckState(Qt.Unchecked)
700+
# remove shot from markers list
701+
shot_combobox_index = self.ui.markers_comboBox.findText(os.path.basename(shot.path))
702+
self.ui.markers_comboBox.removeItem(shot_combobox_index)
700703
# remove row
701704
self.shot_model.removeRow(row)
702705
del shot

0 commit comments

Comments
 (0)