Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 5490
95db14ec60b2
parent 5489
5c9a82215917
child 5493
09cd66fa3243
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Feb 05 17:26:58 2017 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Feb 05 19:02:52 2017 +0100
@@ -1630,14 +1630,15 @@
         else:
             # load the next bunch and try again
             self.__addFinishCallback(self.on_downButton_clicked)
-            self.on_nextButton_clicked()
+            if self.nextButton.isEnabled():
+                self.on_nextButton_clicked()
     
     @pyqtSlot()
     def on_nextButton_clicked(self):
         """
         Private slot to handle the Next button.
         """
-        if self.__lastRev > 0:
+        if self.__lastRev > 0 and self.nextButton.isEnabled():
             self.__getLogEntries(startRev=self.__lastRev - 1)
     
     @pyqtSlot(QDate)
@@ -2229,7 +2230,8 @@
             else:
                 # load the next batch and try again
                 self.__addFinishCallback(lambda: self.__revisionClicked(url))
-                self.on_nextButton_clicked()
+                if self.nextButton.isEnabled():
+                    self.on_nextButton_clicked()
     
     ###########################################################################
     ## Diff handling methods below

eric ide

mercurial