Wallet: fix seed length for empty seeds

This commit is contained in:
tobtoht 2022-07-03 16:40:52 +02:00
parent ecd15c672f
commit a66b282ce1
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -41,7 +41,7 @@ QString Wallet::getSeed(const QString &seedOffset) const
qsizetype Wallet::seedLength() const
{
auto seedLength = this->getCacheAttribute("feather.seed").split(" ").length();
auto seedLength = this->getCacheAttribute("feather.seed").split(" ", Qt::SkipEmptyParts).length();
return seedLength ? seedLength : 25;
}