Steve Borho  committed a47775e

fileview: catch mode changes while diff marker thread is active (fixes #921)

To reproduce, click on a file in revdetails that has many diffs
Immediately click on an added or removed file (implicitly switching to file mode)

  • Participants
  • Parent commits f0b9c68
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

                 self._opcodes = diff.get_opcodes()
                 self._fd = None
                 self._diffs = []
+            else if isinstance(self._opcodes, bool):
+                # catch self._mode changes while this thread is active
+                self._opcodes = []
             for tag, alo, ahi, blo, bhi in self._opcodes[:30]:
                 if tag == 'replace':