From 170f3126f220f9ffe3db471e0024a23dede3f90b Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 15 May 2022 21:51:50 +0000 Subject: [PATCH] GUI: Use translated external signer errors for messagebox text --- src/qt/sendcoinsdialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 33e421d569f..51844762af6 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -454,12 +454,14 @@ bool SendCoinsDialog::signWithExternalSigner(PartiallySignedTransaction& psbtx, } if (err == TransactionError::EXTERNAL_SIGNER_NOT_FOUND) { //: "External signer" means using devices such as hardware wallets. - QMessageBox::critical(nullptr, tr("External signer not found"), "External signer not found"); + const QString msg = tr("External signer not found"); + QMessageBox::critical(nullptr, msg, msg); return false; } if (err == TransactionError::EXTERNAL_SIGNER_FAILED) { //: "External signer" means using devices such as hardware wallets. - QMessageBox::critical(nullptr, tr("External signer failure"), "External signer failure"); + const QString msg = tr("External signer failure"); + QMessageBox::critical(nullptr, msg, msg); return false; } if (err != TransactionError::OK) {