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):
self.forceMode('diff')
elif fd.contents and not fd.diff:
self.forceMode('file')
elif not fd.contents and not fd.diff:
self.forceMode('file')
else:
self.actionDiffMode.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