Commits

Steve Borho committed 18b0cd7

shelve: fix the shelf delete button on the left side, add TODOs

Comments (0)

Files changed (1)

tortoisehg/hgqt/shelve.py

         self.comboa.currentIndexChanged.connect(self.comboAChanged)
         self.delShelfButtonA = QPushButton(_('Delete'))
         self.delShelfButtonA.setToolTip(_('Delete the current shelf file'))
+        self.delShelfButtonA.clicked.connect(self.deleteShelfA)
         ahbox.addWidget(self.comboa, 1)
         ahbox.addWidget(self.delShelfButtonA)
 
 
     @pyqtSlot()
     def deleteShelfA(self):
-        shelf = hglib.fromunicode(self.combob.currentText())
+        # TODO: Are you sure?
+        shelf = hglib.fromunicode(self.comboa.currentText())
         try:
             os.unlink(shelf)
             self.showMessage(_('Shelf deleted'))
 
     @pyqtSlot()
     def deleteShelfB(self):
+        # TODO: Are you sure?
         shelf = hglib.fromunicode(self.combob.currentText())
         try:
             os.unlink(shelf)