[meld/VersionControlRework: 121/123] vcview: Make it clearer that these are either/or cases



commit ae153755b23d41d0b7e69fba5bbdd173e5487fee
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Apr 19 07:51:33 2015 +1000

    vcview: Make it clearer that these are either/or cases

 meld/vcview.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 29034e4..db4651e 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -384,7 +384,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
             if not flattened:
                 if not entries:
                     self.model.add_empty(it, _("(Empty)"))
-                if any(e.state != tree.STATE_NORMAL for e in entries):
+                elif any(e.state != tree.STATE_NORMAL for e in entries):
                     self.treeview.expand_to_path(treepath)
 
         if flattened:


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