Don't show line edit text in its repr().

Previously we showed self.text in the __repr__ of MinimalLineEdit. This however
is a bad idea, because it exposes passwords to the debug log when the currently
focused widget is logged.
This commit is contained in:
Florian Bruhin 2015-02-11 23:33:31 +01:00
parent 4e5bac709b
commit c2f9cae770

View File

@ -43,7 +43,7 @@ class MinimalLineEditMixin:
self.setAttribute(Qt.WA_MacShowFocusRect, False)
def __repr__(self):
return utils.get_repr(self, text=self.text())
return utils.get_repr(self)
class CommandLineEdit(QLineEdit):