1627 itm = self.logTree.itemBelow(self.logTree.currentItem()) |
1627 itm = self.logTree.itemBelow(self.logTree.currentItem()) |
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) |
|
1633 if self.nextButton.isEnabled(): |
1632 if self.nextButton.isEnabled(): |
|
1633 self.__addFinishCallback(self.on_downButton_clicked) |
1634 self.on_nextButton_clicked() |
1634 self.on_nextButton_clicked() |
1635 |
1635 |
1636 @pyqtSlot() |
1636 @pyqtSlot() |
1637 def on_nextButton_clicked(self): |
1637 def on_nextButton_clicked(self): |
1638 """ |
1638 """ |
2227 if itm.isHidden(): |
2227 if itm.isHidden(): |
2228 itm.setHidden(False) |
2228 itm.setHidden(False) |
2229 self.logTree.setCurrentItem(itm) |
2229 self.logTree.setCurrentItem(itm) |
2230 else: |
2230 else: |
2231 # load the next batch and try again |
2231 # load the next batch and try again |
2232 self.__addFinishCallback(lambda: self.__revisionClicked(url)) |
|
2233 if self.nextButton.isEnabled(): |
2232 if self.nextButton.isEnabled(): |
|
2233 self.__addFinishCallback( |
|
2234 lambda: self.__revisionClicked(url)) |
2234 self.on_nextButton_clicked() |
2235 self.on_nextButton_clicked() |
2235 |
2236 |
2236 ########################################################################### |
2237 ########################################################################### |
2237 ## Diff handling methods below |
2238 ## Diff handling methods below |
2238 ########################################################################### |
2239 ########################################################################### |