mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-24 16:53:23 -05:00
Properly initialize various attributes.
This commit is contained in:
parent
c548c7f4b4
commit
5cb906c235
5 changed files with 26 additions and 0 deletions
|
|
@ -20,6 +20,14 @@
|
|||
TimeInfo::TimeInfo()
|
||||
{
|
||||
m_expires = false;
|
||||
m_usageCount = 0; // TODO ???
|
||||
|
||||
QDateTime now = QDateTime::currentDateTime();
|
||||
m_lastModificationTime = now;
|
||||
m_creationTime = now;
|
||||
m_lastAccessTime = now;
|
||||
m_expiryTime = now;
|
||||
m_locationChanged = now;
|
||||
}
|
||||
|
||||
QDateTime TimeInfo::lastModificationTime() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue