statusbar.textbase: Fix broken text check.

This commit is contained in:
Florian Bruhin 2015-08-12 07:35:24 +02:00
parent c1484553c1
commit 8609663f40

View File

@ -55,7 +55,7 @@ class TextBase(QLabel):
Args: Args:
width: The maximal width the text should take. width: The maximal width the text should take.
""" """
if self.text is not None: if self.text():
self._elided_text = self.fontMetrics().elidedText( self._elided_text = self.fontMetrics().elidedText(
self.text(), self._elidemode, width, Qt.TextShowMnemonic) self.text(), self._elidemode, width, Qt.TextShowMnemonic)