From a66b282ce1d37b3d45dfea5a36253f0cff79415e Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 3 Jul 2022 16:40:52 +0200 Subject: [PATCH] Wallet: fix seed length for empty seeds --- src/libwalletqt/Wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index a85f5bc..61ea1ff 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -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; }