utf-8 fix
This commit is contained in:
parent
19de605b79
commit
99f31cc302
2 changed files with 2 additions and 2 deletions
|
@ -824,7 +824,7 @@ class Profile(contact.Contact, Singleton):
|
|||
self.update_filtration()
|
||||
|
||||
def reconnect(self):
|
||||
if self.status is None:
|
||||
if self.status is None or all(list(map(lambda x: x.status is None, self._friends))):
|
||||
self.reset(self._screen.reset)
|
||||
QtCore.QTimer.singleShot(30000, self.reconnect)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class DataLabel(QtGui.QLabel):
|
|||
Label with elided text
|
||||
"""
|
||||
def setText(self, text):
|
||||
text = ''.join(c if c <= '\u10FFFF' else '\u25AF' for c in text)
|
||||
text = ''.join(c if c <= '\U0010FFFF' else '\u25AF' for c in text)
|
||||
metrics = QtGui.QFontMetrics(self.font())
|
||||
text = metrics.elidedText(text, QtCore.Qt.ElideRight, self.width())
|
||||
super().setText(text)
|
||||
|
|
Loading…
Reference in a new issue