mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 22:36:59 -05:00
Update timeinfo when cloning an entry.
This commit is contained in:
parent
107a2e4a5c
commit
e85dbda62a
@ -440,6 +440,12 @@ Entry* Entry::clone() const
|
||||
entry->m_autoTypeAssociations->copyDataFrom(this->m_autoTypeAssociations);
|
||||
entry->setUpdateTimeinfo(true);
|
||||
|
||||
QDateTime now = Tools::currentDateTimeUtc();
|
||||
entry->m_data.timeInfo.setCreationTime(now);
|
||||
entry->m_data.timeInfo.setLastModificationTime(now);
|
||||
entry->m_data.timeInfo.setLastAccessTime(now);
|
||||
entry->m_data.timeInfo.setLocationChanged(now);
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user