Read about our upcoming Code of Conduct on this issue

Commit 7e021084 authored by Steve Borho's avatar Steve Borho
Browse files

fileview: more proper fix for next/prev buttons

parent 73189ee383d5
......@@ -386,7 +386,7 @@ class HgFileView(QFrame):
self.sci.verticalScrollBar().setValue(lo)
break
else:
last = False
last = True
self.actionNextDiff.setEnabled(not last)
self.actionPrevDiff.setEnabled(True)
......@@ -403,7 +403,7 @@ class HgFileView(QFrame):
self.sci.verticalScrollBar().setValue(lo)
break
else:
first = False
first = True
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