Show password dialog before making a transfer

This commit is contained in:
stoffu 2017-09-19 07:57:06 +09:00
parent 4c75fe47f9
commit 1f1d51d8e1
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -912,14 +912,26 @@ ApplicationWindow {
id: transactionConfirmationPopup
onAccepted: {
close();
transactionConfirmationPasswordDialog.onAcceptedCallback = function() {
if(appWindow.password === transactionConfirmationPasswordDialog.password){
// Save transaction to file if view only wallet
if(viewOnly) {
saveTxDialog.open();
return;
} else
} else {
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 {
@ -968,6 +980,15 @@ ApplicationWindow {
}
PasswordDialog {
id: transactionConfirmationPasswordDialog
property var onAcceptedCallback
onAccepted: {
if (onAcceptedCallback())
onAcceptedCallback();
}
}
DaemonManagerDialog {
id: daemonManagerDialog
onRejected: {