Skip to content

Commit

Permalink
It's called model_closed not model_removed
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp committed Nov 21, 2023
1 parent 8115ba9 commit 37ad976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/dicom/src/ui/segmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def _on_model_removed_from_session(self, *args):

def delete(self):
self.session.triggers.remove_handler(self.model_added_handler)
self.session.triggers.remove_handler(self.model_removed_handler)
self.session.triggers.remove_handler(self.model_closed_handler)
# TODO: Restore old mouse modes if necessary
if self.session.ui.main_window.view_layout == "orthoplanes":
self.session.ui.main_window.main_view.clear_segmentation_tool()
Expand Down

0 comments on commit 37ad976

Please sign in to comment.