Commits

Yuya Nishihara committed 3351e50

mq: allow to omit parent argument like other widgets

Comments (0)

Files changed (2)

tortoisehg/hgqt/mq.py

     makeLogVisible = pyqtSignal(bool)
     runCustomCommandRequested = pyqtSignal(str, list)
 
-    def __init__(self, repoagent, parent):
+    def __init__(self, repoagent, parent=None):
         QWidget.__init__(self, parent)
 
         self._repoagent = repoagent

tortoisehg/hgqt/run.py

 def mq(ui, repoagent, *pats, **opts):
     """Mercurial Queue tool"""
     from tortoisehg.hgqt import mq as mqmod
-    return mqmod.MQWidget(repoagent, None)
+    return mqmod.MQWidget(repoagent)
 
 @command('postreview',
     [('r', 'rev', [], _('a revision to post'))],