Fixed another issue in the Mercurial log browser.

Tue, 07 Feb 2017 19:48:01 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 07 Feb 2017 19:48:01 +0100
changeset 5494
fdc53cc1e2fb
parent 5493
09cd66fa3243
child 5495
9584e91c9857

Fixed another issue in the Mercurial log browser.

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Tue Feb 07 19:40:20 2017 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Tue Feb 07 19:48:01 2017 +0100
@@ -1598,7 +1598,10 @@
             self.logTree.indexOfTopLevelItem(current) > 0)
         self.downButton.setEnabled(
             current is not None and
-            int(current.text(self.RevisionColumn).split(":")[0]) > 0)
+            int(current.text(self.RevisionColumn).split(":")[0]) > 0 and
+            (self.logTree.indexOfTopLevelItem(current) <
+                self.logTree.topLevelItemCount() - 1
+             or self.nextButton.isEnabled()))
     
     @pyqtSlot()
     def on_logTree_itemSelectionChanged(self):

eric ide

mercurial