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")); }); }