This instance will be upgraded to Heptapod 0.27.1 on 2021-12-08 at 22:00 UTC+1 (a few minutes of down time)

Commit 94e01936 authored by Steve Borho's avatar Steve Borho
Browse files

fileview: special condition for no contents and no diffs

parent 31b81c4b6a9d
...@@ -297,6 +297,8 @@ class HgFileView(QFrame): ...@@ -297,6 +297,8 @@ class HgFileView(QFrame):
self.forceMode('diff') self.forceMode('diff')
elif fd.contents and not fd.diff: elif fd.contents and not fd.diff:
self.forceMode('file') self.forceMode('file')
elif not fd.contents and not fd.diff:
self.forceMode('file')
else: else:
self.actionDiffMode.setEnabled(True) self.actionDiffMode.setEnabled(True)
self.actionFileMode.setEnabled(True) self.actionFileMode.setEnabled(True)
......
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