Commits

Yuya Nishihara committed 8a0c060

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.

  • Participants
  • Parent commits 7ff04c9

Comments (0)

Files changed (1)

tortoisehg/hgqt/annotate.py

         super(AnnotateView, self).clear()
         self.clearMarginText()
         self.markerDeleteAll()
+        self.annfile = None
 
     @pyqtSlot(bool)
     def setAnnotationEnabled(self, enabled):