From 04f65de4868ee470410767612d0fc5e9bed014f1 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 1 Jul 2014 10:49:48 -0300 Subject: [PATCH] unsubscribing pubsubs from watershed when swap to other style --- invesalius/data/styles.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index 5f6117d..84a6e36 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -798,6 +798,8 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): def CleanUp(self): #self._remove_mask() Publisher.unsubscribe(self.expand_watershed, 'Expand watershed to 3D ' + self.orientation) + Publisher.unsubscribe(self.set_bformat, 'Set watershed brush format') + Publisher.unsubscribe(self.set_bsize, 'Set watershed brush size') Publisher.unsubscribe(self.set_operation, 'Set watershed operation') self.RemoveAllObservers() self.viewer.slice_.to_show_aux = '' -- libgit2 0.21.2