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

reporegistry: allow edit role on data() for model

thanks to this change, when editing a group name, the edit field is preloaded
with the current value

Changeset 0f7c73af1c7e

Parent d8b230b03778

by Adrian Buehlmann

Changes to one file · Browse files at 0f7c73af1c7e Showing diff from parent d8b230b03778 Diff from another changeset...

 
308
309
310
311
 
312
313
314
 
308
309
310
 
311
312
313
314
@@ -308,7 +308,7 @@
  def data(self, index, role):   if not index.isValid():   return QVariant() - if role != Qt.DisplayRole: + if role != Qt.DisplayRole and role != Qt.EditRole:   return QVariant();   item = index.internalPointer()   return item.data(index.column())