From 85abeba4257ea7c6d20895c3bd55177477ecba46 Mon Sep 17 00:00:00 2001 From: onryo Date: Fri, 24 Feb 2023 09:14:20 +0100 Subject: [PATCH] Cannot invoke tr fix --- src/controller.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index 413c2ec..61660cd 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -1444,8 +1444,8 @@ void Controller::unlockIfEncrypted(std::function cb, std::functiontr("Wallet Password"), - main->tr("Your wallet is encrypted.\nPlease enter your wallet password"), + QObject::tr("Wallet Password"), + QObject::tr("Your wallet is encrypted.\nPlease enter your wallet password"), QLineEdit::Password ); @@ -1453,8 +1453,8 @@ void Controller::unlockIfEncrypted(std::function cb, std::functiontr("Wallet Decryption Failed"), - main->tr("Please enter a valid password"), + QObject::tr("Wallet Decryption Failed"), + QObject::tr("Please enter a valid password"), QMessageBox::Ok ); error(); @@ -1473,7 +1473,7 @@ void Controller::unlockIfEncrypted(std::function cb, std::functiontr("Wallet Decryption Failed"), + QObject::tr("Wallet Decryption Failed"), QString::fromStdString(reply["error"].get()), QMessageBox::Ok ); @@ -1543,7 +1543,7 @@ void Controller::executeTransaction(Tx tx, error("", errStr); }); }, [=]() { - error("", main->tr("Failed to unlock wallet")); + error("", QObject::tr("Failed to unlock wallet")); }); }