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:
parent
b852daeeae
commit
b44d7c0b84
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue