[gedit-plugins] Clear files and file_names when the file browser's root changes



commit 37c7b3d1a2a7e33f139ba511b0d9a931a8aa561f
Author: Garrett Regier <garrettregier gmail com>
Date:   Sat Jun 28 15:01:19 2014 -0700

    Clear files and file_names when the file browser's root changes

 plugins/git/git/windowactivatable.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git/windowactivatable.py b/plugins/git/git/windowactivatable.py
index deca482..9d96076 100644
--- a/plugins/git/git/windowactivatable.py
+++ b/plugins/git/git/windowactivatable.py
@@ -146,6 +146,8 @@ class GitWindowActivatable(GObject.Object, Gedit.WindowActivatable):
     def root_changed(self, bus, msg, data=None):
         self.clear_monitors()
         self.git_status_thread.clear()
+        self.files = {}
+        self.file_names = {}
 
         location = msg.location
         if not location.has_uri_scheme('file'):


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