Commits

Yuya Nishihara committed a28ffa2

graft: replace internal showMessage signal by direct function call

  • Participants
  • Parent commits 3866bc9

Comments (0)

Files changed (1)

tortoisehg/hgqt/graft.py

 BB = QDialogButtonBox
 
 class GraftDialog(QDialog):
-    showMessage = pyqtSignal(QString)
 
     def __init__(self, repoagent, parent, **opts):
         super(GraftDialog, self).__init__(parent)
         self.cmd = cmdui.Widget(True, True, self)
         self.cmd.commandFinished.connect(self.commandFinished)
         self._stbar = self.cmd.stbar
-        self.showMessage.connect(self._stbar.showMessage)
         self._stbar.linkActivated.connect(self.linkActivated)
         self.layout().addWidget(self.cmd, 2)
 
         if self.checkResolve():
             self.abortbtn.setEnabled(True)
         else:
-            self.showMessage.emit(_('Checking...'))
+            self._stbar.showMessage(_('Checking...'))
             self.abortbtn.setEnabled(False)
             self.graftbtn.setEnabled(False)
             QTimer.singleShot(0, self._wctxcleaner.check)
         else:
             self.graftbtn.setEnabled(True)
             txt = _('You may continue or start the graft')
-        self.showMessage.emit(txt)
+        self._stbar.showMessage(txt)
 
     def graft(self):
         self.graftbtn.setEnabled(False)
                 self.cmd.setShowOutput(True)  # contains hint
             else:
                 self._updateSource(len(self.sourcelist) - 1)
-            self.showMessage.emit(msg)
+            self._stbar.showMessage(msg)
             self.graftbtn.setEnabled(True)
             self.graftbtn.setText(_('Close'))
             self.graftbtn.clicked.disconnect(self.graft)
         else:
             self.graftbtn.setEnabled(True)
             txt = _('You may continue the graft')
-        self.showMessage.emit(txt)
+        self._stbar.showMessage(txt)
 
         currgraftrevs = self.graftstate()
         if currgraftrevs: