Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

reporegistry: add delete confirmation UI

Changeset e781ba241a1d

Parent 34e17e5f3d38

by Adrian Buehlmann

Changes to one file · Browse files at e781ba241a1d Showing diff from parent 34e17e5f3d38 Diff from another changeset...

 
10
11
12
13
14
 
15
16
17
 
111
112
113
114
 
115
116
117
 
171
172
173
 
 
 
 
 
 
174
175
176
 
10
11
12
 
 
13
14
15
16
 
110
111
112
 
113
114
115
116
 
170
171
172
173
174
175
176
177
178
179
180
181
@@ -10,8 +10,7 @@
 from mercurial import url    from tortoisehg.hgqt.i18n import _ -from tortoisehg.hgqt.qtlib import geticon -from tortoisehg.hgqt import cmdui +from tortoisehg.hgqt import cmdui, qtlib  from tortoisehg.hgqt.repotreemodel import RepoTreeModel  from tortoisehg.hgqt.pathedit import PathEditDialog   @@ -111,7 +110,7 @@
  act = self._actions[name]   '''   if icon: - act.setIcon(geticon(icon)) + act.setIcon(qtlib.geticon(icon))   '''   if tip:   act.setStatusTip(tip) @@ -171,6 +170,12 @@
  def removeSelected(self):   if not self.selitem:   return + labels = [(QMessageBox.Yes, _('&Delete')), + (QMessageBox.No, _('Cancel'))] + if not qtlib.QuestionMsgBox(_('Confirm Delete'), + _('Delete the node and all its children?'), + labels=labels, parent=self): + return   m = self.model()   s = self.selitem   row = s.row()