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
+1 -1
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;
}