Commit a62f6b8c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to show last used date time

parent 65e2b9fd
Pipeline #53396 canceled with stage
......@@ -85,7 +85,10 @@ void DKIMManagerKey::loadKeys()
const QString domain = group.readEntry(QStringLiteral("Domain"), QString());
const QString key = group.readEntry(QStringLiteral("Key"), QString());
const QDateTime storedAt = QDateTime::fromString(group.readEntry(QStringLiteral("StoredAt"), QString()), Qt::ISODate);
const QDateTime lastUsed = QDateTime::fromString(group.readEntry(QStringLiteral("LastUsed"), QString()), Qt::ISODate);
QDateTime lastUsed = QDateTime::fromString(group.readEntry(QStringLiteral("LastUsed"), QString()), Qt::ISODate);
if (!lastUsed.isValid()) {
lastUsed = storedAt;
}
mKeys.append(KeyInfo{key, selector, domain, storedAt, lastUsed});
}
}
......
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