Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable qqueue: make check for active queue more locale safe

Changeset bc16f41b0a41

Parent 27bc37296d11

by Johan Samyn

Changes to one file · Browse files at bc16f41b0a41 Showing diff from parent 27bc37296d11 Diff from another changeset...

 
212
213
214
215
 
 
216
217
 
218
219
220
 
212
213
214
 
215
216
217
 
218
219
220
221
@@ -212,9 +212,10 @@
  self.itemfont = item.font()   self.itemfontbold = self.itemfont   self.itemfontbold.setBold(True) - if 'active' in q: + activestr = _(' (active)') # locale safe ? (see also mq.py) + if q.endswith(activestr):   row_activeq = i - self.activequeue = q[:-9] + self.activequeue = q[:-len(activestr)]   item.setText(self.activequeue)   item.setFont(self.itemfontbold)   self.ql.setCurrentRow(row_activeq)