diff options
author | stoffu <stoffu@protonmail.ch> | 2018-02-25 12:44:10 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-02-25 12:44:10 +0900 |
commit | 399120ddad4435c6b44f955ae3aed2fd8f761cf8 (patch) | |
tree | 4f9e1ce66b0f6571c6b972f646562ee98a215690 | |
parent | Merge pull request #3245 (diff) | |
download | monero-399120ddad4435c6b44f955ae3aed2fd8f761cf8.tar.xz |
simplewallet: set seed language when restoring from english-old seed
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index c67a6bc6c..363964be4 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2731,7 +2731,7 @@ bool simple_wallet::new_wallet(const boost::program_options::variables_map& vm, // a seed language is not already specified AND // (it is not a wallet restore OR if it was a deprecated wallet // that was earlier used before this restore) - if ((!two_random) && (mnemonic_language.empty()) && (!m_restore_deterministic_wallet || was_deprecated_wallet)) + if ((!two_random) && (mnemonic_language.empty() || mnemonic_language == crypto::ElectrumWords::old_language_name) && (!m_restore_deterministic_wallet || was_deprecated_wallet)) { if (was_deprecated_wallet) { |