1628 if itm: |
1628 if itm: |
1629 self.logTree.setCurrentItem(itm) |
1629 self.logTree.setCurrentItem(itm) |
1630 else: |
1630 else: |
1631 # load the next bunch and try again |
1631 # load the next bunch and try again |
1632 self.__addFinishCallback(self.on_downButton_clicked) |
1632 self.__addFinishCallback(self.on_downButton_clicked) |
1633 self.on_nextButton_clicked() |
1633 if self.nextButton.isEnabled(): |
|
1634 self.on_nextButton_clicked() |
1634 |
1635 |
1635 @pyqtSlot() |
1636 @pyqtSlot() |
1636 def on_nextButton_clicked(self): |
1637 def on_nextButton_clicked(self): |
1637 """ |
1638 """ |
1638 Private slot to handle the Next button. |
1639 Private slot to handle the Next button. |
1639 """ |
1640 """ |
1640 if self.__lastRev > 0: |
1641 if self.__lastRev > 0 and self.nextButton.isEnabled(): |
1641 self.__getLogEntries(startRev=self.__lastRev - 1) |
1642 self.__getLogEntries(startRev=self.__lastRev - 1) |
1642 |
1643 |
1643 @pyqtSlot(QDate) |
1644 @pyqtSlot(QDate) |
1644 def on_fromDate_dateChanged(self, date): |
1645 def on_fromDate_dateChanged(self, date): |
1645 """ |
1646 """ |
2227 itm.setHidden(False) |
2228 itm.setHidden(False) |
2228 self.logTree.setCurrentItem(itm) |
2229 self.logTree.setCurrentItem(itm) |
2229 else: |
2230 else: |
2230 # load the next batch and try again |
2231 # load the next batch and try again |
2231 self.__addFinishCallback(lambda: self.__revisionClicked(url)) |
2232 self.__addFinishCallback(lambda: self.__revisionClicked(url)) |
2232 self.on_nextButton_clicked() |
2233 if self.nextButton.isEnabled(): |
|
2234 self.on_nextButton_clicked() |
2233 |
2235 |
2234 ########################################################################### |
2236 ########################################################################### |
2235 ## Diff handling methods below |
2237 ## Diff handling methods below |
2236 ########################################################################### |
2238 ########################################################################### |
2237 |
2239 |