Fix restore from seed functionality

This commit is contained in:
dsc
2020-10-11 17:08:34 +02:00
parent ad7b278508
commit b114ef1710
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -530,6 +530,11 @@ void AppContext::createWallet(FeatherSeed seed, const QString &path, const QStri
return;
}
if(seed.mnemonicSeed.isEmpty()) {
emit walletCreatedError("Mnemonic seed error. Failed to write wallet.");
return;
}
this->currentWallet = seed.writeWallet(this->walletManager, this->networkType, path, password, this->kdfRounds);
if(this->currentWallet == nullptr) {
emit walletCreatedError("Failed to write wallet");