mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-03 23:32:33 -08:00
Update LocationChanged time when entries and groups are moved.
Closes #3
This commit is contained in:
1 parent
cc426d2453
commit
ef26065a99
2 files changed
+15
No files matched your search
@@ -357,6 +357,10 @@ Group* Entry::group()
|
||||
|
||||
void Entry::setGroup(Group* group)
|
||||
{
|
||||
if (m_group == group) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_group) {
|
||||
m_group->removeEntry(this);
|
||||
if (m_group->database() != group->database() && m_group->database()) {
|
||||
@@ -367,6 +371,10 @@ void Entry::setGroup(Group* group)
|
||||
group->addEntry(this);
|
||||
m_group = group;
|
||||
QObject::setParent(group);
|
||||
|
||||
if (m_updateTimeinfo) {
|
||||
m_timeInfo.setLocationChanged(QDateTime::currentDateTimeUtc());
|
||||
}
|
||||
}
|
||||
|
||||
void Entry::emitDataChanged()
|
||||
|
||||
Reference in new issue
Block a user