Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable reporegistry: avoid deletion of "default" group by shortcut key (refs #1075)

It takes item.menulist() as a list of capabilities.

Changeset ebc688d14817

Parent 3e700edaa730

by Yuya Nishihara

Changes to one file · Browse files at ebc688d14817 Showing diff from parent 3e700edaa730 Diff from another changeset...

 
204
205
206
 
 
207
208
209
 
204
205
206
207
208
209
210
211
@@ -204,6 +204,8 @@
  'remove selected repository'   s = self.selitem   item = s.internalPointer() + if 'remove' not in item.menulist(): # check capability + return   if not item.okToDelete():   labels = [(QMessageBox.Yes, _('&Delete')),   (QMessageBox.No, _('Cancel'))]