Commit de24187d authored by Steve Borho's avatar Steve Borho
Browse files

fileview: only emit empty desc string on leave if annotating

This was causing messages to be cleared somewhat inexplicably.
parent 17c1e1724353
...@@ -263,8 +263,9 @@ class HgFileView(QFrame): ...@@ -263,8 +263,9 @@ class HgFileView(QFrame):
qsci.mouseMoveEvent(self.sci, event) qsci.mouseMoveEvent(self.sci, event)
def leaveEvent(self, event): def leaveEvent(self, event):
self.lastrev = None if self._mode == 'file' and self._annotate:
self.showDescSignal.emit('') self.lastrev = None
def clearDisplay(self): def clearDisplay(self):
self.sci.clear() self.sci.clear()
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