Commit 8b0962aa authored by Kai Willadsen's avatar Kai Willadsen

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

parent fc4f1b7d
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment