Commits

Elson Wei committed df98653

mq: if a patch is pushable and 'why' has value, the patch is guarded

Comments (0)

Files changed (1)

tortoisehg/hgqt/mq.py

                     f.setItalic(True)
                     item.setFont(f)
                     item.setIcon(qtlib.geticon('hg-patch-guarded'))
-                elif why:
+                elif why is not None:
                     item.setIcon(qtlib.geticon('hg-patch-unguarded'))
             patchguards = repo.mq.seriesguards[idx]
             if patchguards: