Commits

Yuya Nishihara committed a6c3d3d

qdelete: remove unnecessary variables

  • Participants
  • Parent commits 18ca369

Comments (0)

Files changed (1)

tortoisehg/hgqt/qdelete.py

         super(QDeleteDialog, self).__init__(parent)
         self.setWindowTitle(_('Delete Patches'))
         self.setWindowIcon(qtlib.geticon('hg-qdelete'))
-        f = self.windowFlags()
-        self.setWindowFlags(f & ~Qt.WindowContextHelpButtonHint)
-        self.patches = patches
+        self.setWindowFlags(self.windowFlags()
+                            & ~Qt.WindowContextHelpButtonHint)
 
         self.setLayout(QVBoxLayout())
 
         msg = _('Remove patches from queue?')
-        patchesu = u'<li>'.join(self.patches)
+        patchesu = u'<li>'.join(patches)
         lbl = QLabel(u'<b>%s<ul><li>%s</ul></b>' % (msg, patchesu))
         self.layout().addWidget(lbl)
 
         bbox.accepted.connect(self.accept)
         bbox.rejected.connect(self.reject)
         self.layout().addWidget(bbox)
-        self.bbox = bbox
 
     def options(self):
         return {'keep': self.keepchk.isChecked()}