]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Wallet: fix seed length for empty seeds
authortobtoht <thotbot@protonmail.com>
Sun, 3 Jul 2022 14:40:52 +0000 (16:40 +0200)
committertobtoht <thotbot@protonmail.com>
Sun, 3 Jul 2022 14:40:52 +0000 (16:40 +0200)
src/libwalletqt/Wallet.cpp

index a85f5bcaa719a2e79b29f4e3c13ea1855cc65d51..61ea1ff20d0ac8be12738cf9dd1fb26494199b14 100644 (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;
 }