Added some code to cope with unlimited recursions.

Sun, 05 Feb 2017 19:02:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 05 Feb 2017 19:02:52 +0100
changeset 5490
95db14ec60b2
parent 5489
5c9a82215917
child 5491
a9d9f294de64

Added some code to cope with unlimited recursions.

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
--- 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