Commit 4d48affb authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

annotate: reset known annfile by clear() so that setSource() takes effect

Without this, the following code path doesn't work:

 1. annview.setSource('foo', 1)
 2. annview.clear()
 3. annview.setSource('foo', 1)  # no change

It happens when user clicks "annotate originating revision" from context menu.
parent 7ff04c9760e2
......@@ -206,6 +206,7 @@ class AnnotateView(qscilib.Scintilla):
super(AnnotateView, self).clear()
self.clearMarginText()
self.markerDeleteAll()
self.annfile = None
@pyqtSlot(bool)
def setAnnotationEnabled(self, enabled):
......
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