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
parent
6a06a2f5f0
commit
8b3fd592b7
|
@ -165,6 +165,7 @@ namespace accounts
|
||||||
const int tokenLength = settings.value("pinLength").toInt(&ok);
|
const int tokenLength = settings.value("pinLength").toInt(&ok);
|
||||||
|
|
||||||
if (!ok || (type != "hotp" && type != "totp")) {
|
if (!ok || (type != "hotp" && type != "totp")) {
|
||||||
|
settings.endGroup();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue