mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-22 10:44:32 +00:00
Wizard: allow enters in seed entry
This commit is contained in:
parent
2ce6a80fba
commit
cb12e41699
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ bool PageWalletRestoreSeed::validatePage() {
|
|||
|
||||
auto errStyle = "QTextEdit{border: 1px solid red;}";
|
||||
auto seed = ui->seedEdit->toPlainText().replace("\n", " ").replace("\r", "").trimmed();
|
||||
auto seedSplit = seed.split(" ");
|
||||
QStringList seedSplit = seed.split(" ", Qt::SkipEmptyParts);
|
||||
|
||||
if (seedSplit.length() != m_mode->length) {
|
||||
ui->label_errorString->show();
|
||||
|
@ -138,7 +138,7 @@ bool PageWalletRestoreSeed::validatePage() {
|
|||
QMessageBox::information(this, "Corrected erasure", QString("xxxx -> %1").arg(_seed.correction));
|
||||
}
|
||||
|
||||
m_fields->seed = seed;
|
||||
m_fields->seed = seedSplit.join(" ");
|
||||
m_fields->seedOffsetPassphrase = ui->line_seedOffset->text();
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue