[med-svn] [dicompyler] 10/15: Unsubscribe from anonymize

Vojtech Kulvait kulvait-guest at moszumanska.debian.org
Tue Sep 19 22:19:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

kulvait-guest pushed a commit to branch master
in repository dicompyler.

commit 84bf6197bcd4bacba3d33c8f6703de7190d0c912
Author: Vojtěch Kulvait <kulvait at gmail.com>
Date:   Tue Sep 19 21:57:43 2017 +0200

    Unsubscribe from anonymize
---
 debian/patches/092017A_fixpubsub.patch | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/patches/092017A_fixpubsub.patch b/debian/patches/092017A_fixpubsub.patch
index 7b727cd..363138f 100644
--- a/debian/patches/092017A_fixpubsub.patch
+++ b/debian/patches/092017A_fixpubsub.patch
@@ -69,13 +69,17 @@ Index: dicompyler/dicompyler/baseplugins/anonymize.py
  import os, threading
  from dicompyler import guiutil, util
  
-@@ -333,4 +332,4 @@ class AnonymizeDialog(wx.Dialog):
+@@ -333,4 +332,8 @@ class AnonymizeDialog(wx.Dialog):
          else:
              self.privatetags = False
  
 -        self.EndModal(wx.ID_OK)
 \ No newline at end of file
 +        self.EndModal(wx.ID_OK)
++
++    def OnDestroy(self, evt):
++        """Unbind to all events before the plugin is destroyed."""
++        pub.unsubscribe(self.OnImportPrefsChange, 'general.dicom.import_location')
 Index: dicompyler/dicompyler/baseplugins/dvh.py
 ===================================================================
 --- dicompyler.orig/dicompyler/baseplugins/dvh.py

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/dicompyler.git



More information about the debian-med-commit mailing list