Commit 04f65de4868ee470410767612d0fc5e9bed014f1
1 parent
0b7e4b62
Exists in
watershed_improvements_bkp
unsubscribing pubsubs from watershed when swap to other style
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
invesalius/data/styles.py
... | ... | @@ -798,6 +798,8 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): |
798 | 798 | def CleanUp(self): |
799 | 799 | #self._remove_mask() |
800 | 800 | Publisher.unsubscribe(self.expand_watershed, 'Expand watershed to 3D ' + self.orientation) |
801 | + Publisher.unsubscribe(self.set_bformat, 'Set watershed brush format') | |
802 | + Publisher.unsubscribe(self.set_bsize, 'Set watershed brush size') | |
801 | 803 | Publisher.unsubscribe(self.set_operation, 'Set watershed operation') |
802 | 804 | self.RemoveAllObservers() |
803 | 805 | self.viewer.slice_.to_show_aux = '' | ... | ... |