[meld] Unset recorded signal handler when switching to and from non-diff tabs



commit e89c8dd5261cce20b5e3d73a90e4b83b0d3b6be8
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jan 27 09:30:11 2013 +1000

    Unset recorded signal handler when switching to and from non-diff tabs

 meld/meldwindow.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 63aa187..fcff124 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -300,6 +300,8 @@ class MeldWindow(gnomeglade.Component):
         if isinstance(newdoc, melddoc.MeldDoc):
             self.diff_handler = newdoc.connect("next-diff-changed",
                                                self.on_next_diff_changed)
+        else:
+            self.diff_handler = None
         if hasattr(newdoc, 'scheduler'):
             self.scheduler.add_task(newdoc.scheduler)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]