[meld] Unset current tree path on model reset (closes bgo#673395)



commit 8b0962aabcd7896f0f3d7f20266e98d37568446c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Apr 3 17:49:34 2012 +1000

    Unset current tree path on model reset (closes bgo#673395)

 meld/dirdiff.py |    1 +
 meld/vcview.py  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index a650933..2f8fc97 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -437,6 +437,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
     def set_locations(self, locations):
         self.set_num_panes(len(locations))
         locations = [os.path.abspath(l or ".") for l in locations]
+        self.current_path = None
         self.model.clear()
         for pane, loc in enumerate(locations):
             self.fileentry[pane].set_filename(loc)
diff --git a/meld/vcview.py b/meld/vcview.py
index e6b5242..3e44ff1 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -296,6 +296,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
 
     def _set_location(self, location):
         self.location = location
+        self.current_path = None
         self.model.clear()
         self.fileentry.set_filename(location)
         self.fileentry.prepend_history(location)



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