mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 09:13:16 -05:00
Update LocationChanged time when entries and groups are moved.
Closes #3
This commit is contained in:
parent
cc426d2453
commit
ef26065a99
2 changed files with 15 additions and 0 deletions
|
|
@ -264,6 +264,9 @@ void Group::setParent(Group* parent, int index)
|
|||
index = parent->children().size();
|
||||
}
|
||||
|
||||
if (m_parent == parent && index == parent->children().indexOf(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
cleanupParent();
|
||||
|
||||
|
|
@ -280,6 +283,10 @@ void Group::setParent(Group* parent, int index)
|
|||
|
||||
parent->m_children.insert(index, this);
|
||||
|
||||
if (m_updateTimeinfo) {
|
||||
m_timeInfo.setLocationChanged(QDateTime::currentDateTimeUtc());
|
||||
}
|
||||
|
||||
Q_EMIT modified();
|
||||
Q_EMIT added();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue