Commits

Steve Borho committed cd8de2c

status: update check state when removing files from partials dictionary

There's no need to mark the model as dirty, since the check state is not
changing; the check state indicated by the partials dictionary is being copied
to the checked dictionary.

Comments (0)

Files changed (1)

tortoisehg/hgqt/status.py

         dels = []
         for file, oldchanges in self.partials.iteritems():
             if oldchanges.excludecount == 0:
+                self.tv.model().checked[file] = True
                 dels.append(file)
             elif oldchanges.excludecount == len(oldchanges.hunks):
+                self.tv.model().checked[file] = False
                 dels.append(file)
         for file in dels:
             del self.partials[file]