1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

KWallet - Also store the entry updated time

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-01-29 20:59:02 +01:00
parent 788a419d97
commit 94ad9cb982
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -40,6 +40,7 @@ static QMap<QString, QString> encodeEntry(const PasswordEntry &entry)
{"host", entry.host},
{"username", entry.username},
{"password", entry.password},
{"updated", QString::number(entry.updated)},
{"data", QString::fromUtf8(entry.data)}
};
return data;
@ -272,6 +273,7 @@ void KWalletPasswordBackend::initialize()
entry.host = j.value()["host"];
entry.username = j.value()["username"];
entry.password = j.value()["password"];
entry.updated = j.value()["updated"].toInt();
entry.data = j.value()["data"].toUtf8();
if (entry.isValid()) {
m_allEntries.append(entry);