diff -r 09cd66fa3243 -r fdc53cc1e2fb Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py --- 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):