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
4e5bac709b
commit
c2f9cae770
@ -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
Block a user