From 8b3fd592b7a00d2e06be882b6be793958c52f3ad Mon Sep 17 00:00:00 2001 From: Johan Ouwerkerk Date: Tue, 18 Feb 2020 19:41:15 +0100 Subject: [PATCH] Fix: always call endGroup() Make sure to call endGroup() even if the account is rejected before moving on to examine the next (possible) account. --- src/account/actions_p.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/account/actions_p.cpp b/src/account/actions_p.cpp index da584f4..2226289 100644 --- a/src/account/actions_p.cpp +++ b/src/account/actions_p.cpp @@ -165,6 +165,7 @@ namespace accounts const int tokenLength = settings.value("pinLength").toInt(&ok); if (!ok || (type != "hotp" && type != "totp")) { + settings.endGroup(); continue; }