meld r1283 - trunk



Author: vincele
Date: Tue Mar 24 00:11:38 2009
New Revision: 1283
URL: http://svn.gnome.org/viewvc/meld?rev=1283&view=rev

Log:
Set vcview self.location after having chosen a VC plugin,
because that can change from the initial location, and
the vcview tab title would then be wrong.


Modified:
   trunk/vcview.py

Modified: trunk/vcview.py
==============================================================================
--- trunk/vcview.py	(original)
+++ trunk/vcview.py	Tue Mar 24 00:11:38 2009
@@ -222,10 +222,10 @@
             self._set_location(self.vc.root)
 
     def set_location(self, location):
-        self.location = location = os.path.abspath(location or ".")
-        self.choose_vc(vc.get_vcs(location))
+        self.choose_vc(vc.get_vcs(os.path.abspath(location or ".")))
 
     def _set_location(self, location):
+        self.location = location
         self.model.clear()
         self.fileentry.gtk_entry.set_text(location)
         it = self.model.add_entries( None, [location] )



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