Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 5494
fdc53cc1e2fb
parent 5493
09cd66fa3243
child 5496
d157a2319073
--- 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