aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-05 19:16:52 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-05 19:16:52 +0200
commit0c2b25204e29acf049a4e4cc57c2f1e42f3d544e (patch)
treef634881c5c4be357d3d0bf8556398734c031fc87 /src
parentMerge pull request #3313 (diff)
parentsimplewallet: set seed language when restoring from english-old seed (diff)
downloadmonero-0c2b25204e29acf049a4e4cc57c2f1e42f3d544e.tar.xz
Merge pull request #3312
399120dd simplewallet: set seed language when restoring from english-old seed (stoffu)
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 17c74fb0a..a33bf13c7 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -2839,7 +2839,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)
{