mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
KWallet - Also store the entry updated time
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
053978fca5
commit
7f7955cfcf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user