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

stable repomodel: Use "***" when the font can't render u'\u2605' for Working Dir. label

Changeset 1a2472db6728

Parent 565356e5cd77

by Daniel Atallah

Changes to 2 files · Browse files at 1a2472db6728 Showing diff from parent 565356e5cd77 Diff from another changeset...

 
77
78
79
 
80
81
82
 
501
502
503
504
505
 
 
 
 
 
506
507
508
 
77
78
79
80
81
82
83
 
502
503
504
 
 
505
506
507
508
509
510
511
512
@@ -77,6 +77,7 @@
  self.repo = repo   self.revset = revset   self.filterbyrevset = rfilter + self.unicodestar = True     # To be deleted   self._user_colors = {} @@ -501,8 +502,11 @@
    def getlog(self, ctx, gnode):   if ctx.rev() is None: - # The Unicode symbol is a black star: - return u'\u2605 ' + _('Working Directory') + u' \u2605' + if self.unicodestar: + # The Unicode symbol is a black star: + return u'\u2605 ' + _('Working Directory') + u' \u2605' + else: + return '*** ' + _('Working Directory') + ' ***'     msg = ctx.longsummary()  
 
82
83
84
 
 
 
85
86
87
 
82
83
84
85
86
87
88
89
90
@@ -82,6 +82,9 @@
  def setModel(self, model):   self.init_variables()   QTableView.setModel(self, model) + #Check if the font contains the glyph needed by the model + if not QFontMetrics(self.font()).inFont(QString(u'\u2605').at(0)): + model.unicodestar = False   self.selectionModel().currentRowChanged.connect(self.onRowChange)   self.resetDelegate()   model.layoutChanged.connect(self.resetDelegate)