Changeset 1a2472db6728…
Parent 565356e5cd77…
by
Changes to 2 files · Browse files at 1a2472db6728 Showing diff from parent 565356e5cd77 Diff from another changeset...
@@ -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,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)
|
Loading...