mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 14:46:07 -04:00
Fix expiry time and bool not being updated.
This commit is contained in:
parent
e1632e8087
commit
fc8f1231c6
3 changed files with 22 additions and 2 deletions
|
@ -313,6 +313,22 @@ void Entry::setNotes(const QString& notes)
|
|||
m_attributes->set("Notes", notes, m_attributes->isProtected("Notes"));
|
||||
}
|
||||
|
||||
void Entry::setExpires(const bool& value)
|
||||
{
|
||||
if (m_timeInfo.expires() != value) {
|
||||
m_timeInfo.setExpires(value);
|
||||
Q_EMIT modified();
|
||||
}
|
||||
}
|
||||
|
||||
void Entry::setExpiryTime(const QDateTime& dateTime)
|
||||
{
|
||||
if (m_timeInfo.expiryTime() != dateTime) {
|
||||
m_timeInfo.setExpiryTime(dateTime);
|
||||
Q_EMIT modified();
|
||||
}
|
||||
}
|
||||
|
||||
QList<Entry*> Entry::historyItems()
|
||||
{
|
||||
return m_history;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue