Read about our upcoming Code of Conduct on this issue

Commit 2853820b authored by Steve Borho's avatar Steve Borho
Browse files

fileview: fix next/prev diff functions

parent ce5bd1bafdf1
......@@ -385,6 +385,8 @@ class HgFileView(QFrame):
self.sci.setCursorPosition(lo, 0)
self.sci.verticalScrollBar().setValue(lo)
break
else:
last = False
self.actionNextDiff.setEnabled(not last)
self.actionPrevDiff.setEnabled(True)
......@@ -400,6 +402,8 @@ class HgFileView(QFrame):
self.sci.setCursorPosition(lo, 0)
self.sci.verticalScrollBar().setValue(lo)
break
else:
first = False
self.actionNextDiff.setEnabled(True)
self.actionPrevDiff.setEnabled(not first)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment