aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-05-30 21:24:45 +0200
committerRiccardo Spagni <ric@spagni.net>2017-05-30 21:24:45 +0200
commitf5e65452cebf51e5557aa4c66494718b93b6df80 (patch)
treee40d06245caf7164bc97d00fc1d6a57993d4e14c
parentMerge pull request #2039 (diff)
parentWallet API: Set seed lang when recovering form keys (diff)
downloadmonero-f5e65452cebf51e5557aa4c66494718b93b6df80.tar.xz
Merge pull request #2042
740bc24c Wallet API: Set seed lang when recovering form keys (Jaquee)
-rw-r--r--src/wallet/api/wallet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index 611c1819f..1b4300edf 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -464,7 +464,8 @@ bool WalletImpl::recoverFromKeys(const std::string &path,
{
if (has_spendkey) {
m_wallet->generate(path, "", address, spendkey, viewkey);
- LOG_PRINT_L1("Generated new wallet from keys");
+ setSeedLanguage(language);
+ LOG_PRINT_L1("Generated new wallet from keys with seed language: " + language);
}
else {
m_wallet->generate(path, "", address, viewkey);