statusbar.textbase: Fix broken text check.
This commit is contained in:
parent
c1484553c1
commit
8609663f40
@ -55,7 +55,7 @@ class TextBase(QLabel):
|
||||
Args:
|
||||
width: The maximal width the text should take.
|
||||
"""
|
||||
if self.text is not None:
|
||||
if self.text():
|
||||
self._elided_text = self.fontMetrics().elidedText(
|
||||
self.text(), self._elidemode, width, Qt.TextShowMnemonic)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user