mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 17:16:33 -05:00
Update timeinfo of group only when properties of the group itself change.
This commit is contained in:
parent
34204f3281
commit
84d9d2ec47
2 changed files with 4 additions and 5 deletions
|
|
@ -35,8 +35,6 @@ Group::Group()
|
|||
m_searchingEnabled = Inherit;
|
||||
|
||||
m_updateTimeinfo = true;
|
||||
|
||||
connect(this, SIGNAL(modified()), this, SLOT(updateTimeinfo()));
|
||||
}
|
||||
|
||||
Group::~Group()
|
||||
|
|
@ -47,6 +45,7 @@ Group::~Group()
|
|||
template <class T> bool Group::set(T& property, const T& value) {
|
||||
if (property != value) {
|
||||
property = value;
|
||||
updateTimeinfo();
|
||||
Q_EMIT modified();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -177,6 +176,7 @@ void Group::setIcon(int iconNumber)
|
|||
|
||||
m_pixmapCacheKey = QPixmapCache::Key();
|
||||
|
||||
updateTimeinfo();
|
||||
Q_EMIT modified();
|
||||
Q_EMIT dataChanged(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue