Fix: always call endGroup()

Make sure to call endGroup() even if the account is rejected before
moving on to examine the next (possible) account.
master
Johan Ouwerkerk 2020-02-18 19:41:15 +01:00
parent 6a06a2f5f0
commit 8b3fd592b7
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ namespace accounts
const int tokenLength = settings.value("pinLength").toInt(&ok);
if (!ok || (type != "hotp" && type != "totp")) {
settings.endGroup();
continue;
}