Commits

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.

Comments (0)

Files changed (2)

tortoisehg/hgqt/mq.py

         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())

tortoisehg/hgqt/qdelete.py

 
 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'))
         self.setWindowIcon(qtlib.geticon('hg-qdelete'))
         f = self.windowFlags()
         self.setWindowFlags(f & ~Qt.WindowContextHelpButtonHint)
-        self._repoagent = repoagent
         self.patches = patches
 
         self.setLayout(QVBoxLayout())