Yuya Nishihara  committed 5943fb8

qdelete: remove repository name from title of confirmation dialog

QDeleteDialog is now message-box-like modal dialog, so it isn't necessary
to show repo.displayname in window title.

  • Participants
  • Parent commits 84fc13c

Comments (0)

Files changed (2)

File tortoisehg/hgqt/

         return self._runCommand('qrename', [patch, newname], {})
     def deletePatches(self, patches):
-        dlg = qdelete.QDeleteDialog(self._repoagent, patches, self.parent())
+        dlg = qdelete.QDeleteDialog(patches, self.parent())
         if not dlg.exec_():
             return cmdcore.nullCmdSession()
         return self._runCommand('qdelete', patches, dlg.options())

File tortoisehg/hgqt/

 class QDeleteDialog(QDialog):
-    def __init__(self, repoagent, patches, parent):
+    def __init__(self, patches, parent):
         super(QDeleteDialog, self).__init__(parent)
-        repo = repoagent.rawRepo()
-        self.setWindowTitle(_('Patch remove - %s') % repo.displayname)
+        self.setWindowTitle(_('Patch remove'))
         f = self.windowFlags()
         self.setWindowFlags(f & ~Qt.WindowContextHelpButtonHint)
-        self._repoagent = repoagent
         self.patches = patches