[meld] Fix regression in page action sensitivity handling (closes bgo#692199)



commit 4969df246486cb25e03167e41ad5250525fd9f3c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Jan 22 05:39:41 2013 +1000

    Fix regression in page action sensitivity handling (closes bgo#692199)

 meld/meldwindow.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 233a113..63aa187 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -297,7 +297,7 @@ class MeldWindow(gnomeglade.Component):
         except AttributeError:
             pass
         newdoc.on_container_switch_in_event(self.ui)
-        if isinstance(page, melddoc.MeldDoc):
+        if isinstance(newdoc, melddoc.MeldDoc):
             self.diff_handler = newdoc.connect("next-diff-changed",
                                                self.on_next_diff_changed)
         if hasattr(newdoc, 'scheduler'):



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