[meld] dirdiff: Expand the root path regardless of whether there were changes



commit 167fa90ca28293f8067919f7a8eb2a65a7beadba
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jan 11 06:59:42 2015 +1000

    dirdiff: Expand the root path regardless of whether there were changes
    
    It's always looked a bit weird that we didn't expand the root path,
    because it's not clear that we've finished and just haven't... you
    know... not expanded anything. With this change, we expand the root
    path when we finish so that the user can more easily see that we've
    actually looked. Together with the new notification, this should make
    the no-differences case a lot nicer.

 meld/dirdiff.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 2f6c25f..d49b066 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -823,6 +823,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
         elif not expanded:
             self._show_identical_status()
 
+        self.treeview[0].expand_to_path(Gtk.TreePath(("0",)))
         for path in sorted(expanded):
             self.treeview[0].expand_to_path(path)
         yield _("[%s] Done") % self.label_text


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