Browse Source

Cannot invoke tr fix

onryo
onryo 1 year ago
parent
commit
85abeba425
  1. 12
      src/controller.cpp

12
src/controller.cpp

@ -1444,8 +1444,8 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
// Wallet is encrypted and locked. Ask for the password and unlock. // Wallet is encrypted and locked. Ask for the password and unlock.
QString password = QInputDialog::getText( QString password = QInputDialog::getText(
main, main,
main->tr("Wallet Password"), QObject::tr("Wallet Password"),
main->tr("Your wallet is encrypted.\nPlease enter your wallet password"), QObject::tr("Your wallet is encrypted.\nPlease enter your wallet password"),
QLineEdit::Password QLineEdit::Password
); );
@ -1453,8 +1453,8 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
{ {
QMessageBox::critical( QMessageBox::critical(
main, main,
main->tr("Wallet Decryption Failed"), QObject::tr("Wallet Decryption Failed"),
main->tr("Please enter a valid password"), QObject::tr("Please enter a valid password"),
QMessageBox::Ok QMessageBox::Ok
); );
error(); error();
@ -1473,7 +1473,7 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
{ {
QMessageBox::critical( QMessageBox::critical(
main, main,
main->tr("Wallet Decryption Failed"), QObject::tr("Wallet Decryption Failed"),
QString::fromStdString(reply["error"].get<json::string_t>()), QString::fromStdString(reply["error"].get<json::string_t>()),
QMessageBox::Ok QMessageBox::Ok
); );
@ -1543,7 +1543,7 @@ void Controller::executeTransaction(Tx tx,
error("", errStr); error("", errStr);
}); });
}, [=]() { }, [=]() {
error("", main->tr("Failed to unlock wallet")); error("", QObject::tr("Failed to unlock wallet"));
}); });
} }

Loading…
Cancel
Save