From a90bff4586249f6e16b42fea2b05b36b2dc61c65 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 17 Mar 2023 17:09:01 +0000 Subject: [PATCH] qml: mark masterkey/wif/addr input fields as sensitive related: https://github.com/spesmilo/electrum/issues/8256 --- electrum/gui/qml/components/ImportAddressesKeysDialog.qml | 1 + electrum/gui/qml/components/wizard/WCHaveMasterKey.qml | 1 + electrum/gui/qml/components/wizard/WCImport.qml | 1 + 3 files changed, 3 insertions(+) diff --git a/electrum/gui/qml/components/ImportAddressesKeysDialog.qml b/electrum/gui/qml/components/ImportAddressesKeysDialog.qml index 9320cbffe..61940b67a 100644 --- a/electrum/gui/qml/components/ImportAddressesKeysDialog.qml +++ b/electrum/gui/qml/components/ImportAddressesKeysDialog.qml @@ -64,6 +64,7 @@ ElDialog { focus: true wrapMode: TextEdit.WrapAnywhere onTextChanged: valid = verify(text) + inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText } ColumnLayout { Layout.alignment: Qt.AlignTop diff --git a/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml b/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml index b35b8df07..558615573 100644 --- a/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml +++ b/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml @@ -119,6 +119,7 @@ WizardComponent { if (activeFocus) verifyMasterKey(text) } + inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText } ColumnLayout { ToolButton { diff --git a/electrum/gui/qml/components/wizard/WCImport.qml b/electrum/gui/qml/components/wizard/WCImport.qml index baa0546b6..533308d71 100644 --- a/electrum/gui/qml/components/wizard/WCImport.qml +++ b/electrum/gui/qml/components/wizard/WCImport.qml @@ -40,6 +40,7 @@ WizardComponent { focus: true wrapMode: TextEdit.WrapAnywhere onTextChanged: valid = verify(text) + inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText } ColumnLayout { Layout.alignment: Qt.AlignTop