mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-19 10:31:09 +00:00
Show password dialog before making a transfer
This commit is contained in:
parent
4c75fe47f9
commit
1f1d51d8e1
1 changed files with 28 additions and 7 deletions
27
main.qml
27
main.qml
|
@ -912,14 +912,26 @@ ApplicationWindow {
|
||||||
id: transactionConfirmationPopup
|
id: transactionConfirmationPopup
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
close();
|
close();
|
||||||
|
transactionConfirmationPasswordDialog.onAcceptedCallback = function() {
|
||||||
|
if(appWindow.password === transactionConfirmationPasswordDialog.password){
|
||||||
// Save transaction to file if view only wallet
|
// Save transaction to file if view only wallet
|
||||||
if(viewOnly) {
|
if(viewOnly) {
|
||||||
saveTxDialog.open();
|
saveTxDialog.open();
|
||||||
return;
|
} else {
|
||||||
} else
|
|
||||||
handleTransactionConfirmed()
|
handleTransactionConfirmed()
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
|
informationPopup.text = qsTr("Wrong password");
|
||||||
|
informationPopup.open()
|
||||||
|
informationPopup.onCloseCallback = function() {
|
||||||
|
transactionConfirmationPasswordDialog.open()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
transactionConfirmationPasswordDialog.password = ""
|
||||||
|
}
|
||||||
|
transactionConfirmationPasswordDialog.open()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardDialog {
|
StandardDialog {
|
||||||
|
@ -968,6 +980,15 @@ ApplicationWindow {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PasswordDialog {
|
||||||
|
id: transactionConfirmationPasswordDialog
|
||||||
|
property var onAcceptedCallback
|
||||||
|
onAccepted: {
|
||||||
|
if (onAcceptedCallback())
|
||||||
|
onAcceptedCallback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DaemonManagerDialog {
|
DaemonManagerDialog {
|
||||||
id: daemonManagerDialog
|
id: daemonManagerDialog
|
||||||
onRejected: {
|
onRejected: {
|
||||||
|
|
Loading…
Reference in a new issue