Commit e0b840eb authored by Martin Straka's avatar Martin Straka Committed by Karel Slaný
Browse files

Fixed wrong loop statements cause application freezing.

parent f9dc18bb
......@@ -820,7 +820,8 @@ QStringList AccountDb::getPasswordExpirationList(
while (query.isValid()) {
if (nonPwdUserNames.contains(query.value(0).toString())) {
continue;
query.next();
break;
}
QString exprDateTime =
......@@ -832,12 +833,14 @@ QStringList AccountDb::getPasswordExpirationList(
dateTimeFromDbFormat(
query.value(1).toString()));
if (!dbDateTime.isValid()) {
continue;
query.next();
break;
}
const QDate dbDate = dbDateTime.date();
if (Q_UNLIKELY(!dbDate.isValid())) {
continue;
query.next();
break;
}
qint64 daysTo =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment