SeedDialog: Fix missing 25 word seed if lang not set

This commit is contained in:
tobtoht 2021-05-21 00:11:59 +02:00
parent 9a97c44d4c
commit 57593589df
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -3,6 +3,7 @@
#include "ui_seeddialog.h"
#include "seeddialog.h"
#include "constants.h"
SeedDialog::SeedDialog(QSharedPointer<AppContext> ctx, QWidget *parent)
: QDialog(parent)
@ -14,6 +15,11 @@ SeedDialog::SeedDialog(QSharedPointer<AppContext> ctx, QWidget *parent)
ui->label_restoreHeight->setText(QString::number(m_ctx->wallet->getWalletCreationHeight()));
if (m_ctx->wallet->getSeedLanguage().isEmpty()) {
qDebug() << "No seed language set, using default";
m_ctx->wallet->setSeedLanguage(constants::seedLanguage);
}
QString seedOffset = m_ctx->wallet->getCacheAttribute("feather.seedoffset");
QString seed_14_words = m_ctx->wallet->getCacheAttribute("feather.seed");
QString seed_25_words = m_ctx->wallet->getSeed(seedOffset);