eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py

changeset 8259
2bbec88047dd
parent 8243
cc717c2ae956
child 8273
698ae46f40a4
diff -r 82b608e352ec -r 2bbec88047dd eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Wed Apr 21 19:40:50 2021 +0200
@@ -728,14 +728,13 @@
             for parent in parents:
                 self.__childrenInfo[parent].append(commitId)
         
-        if self.logTree.topLevelItemCount() > 1:
-            topedges = (
-                self.logTree.topLevelItem(
-                    self.logTree.indexOfTopLevelItem(itm) - 1)
-                .data(0, self.__edgesRole)
-            )
-        else:
-            topedges = None
+        topedges = (
+            self.logTree.topLevelItem(
+                self.logTree.indexOfTopLevelItem(itm) - 1
+            ).data(0, self.__edgesRole)
+            if self.logTree.topLevelItemCount() > 1 else
+            None
+        )
         
         icon = self.__generateIcon(column, color, edges, topedges,
                                    QColor("blue"),

eric ide

mercurial