mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 22:36:59 -05:00
Allow passing entry cloning flags to Group::clone().
This commit is contained in:
parent
f2dfef8c41
commit
a992c76d6a
@ -464,7 +464,7 @@ QSet<Uuid> Group::customIconsRecursive() const
|
||||
return result;
|
||||
}
|
||||
|
||||
Group* Group::clone() const
|
||||
Group* Group::clone(Entry::CloneFlags entryFlags) const
|
||||
{
|
||||
Group* clonedGroup = new Group();
|
||||
|
||||
@ -474,7 +474,7 @@ Group* Group::clone() const
|
||||
clonedGroup->m_data = m_data;
|
||||
|
||||
Q_FOREACH (Entry* entry, entries()) {
|
||||
Entry* clonedEntry = entry->clone(Entry::CloneNewUuid | Entry::CloneResetTimeInfo);
|
||||
Entry* clonedEntry = entry->clone(entryFlags);
|
||||
clonedEntry->setGroup(clonedGroup);
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
* Note that you need to copy the custom icons manually when inserting the
|
||||
* new group into another database.
|
||||
*/
|
||||
Group* clone() const;
|
||||
Group* clone(Entry::CloneFlags entryFlags = Entry::CloneNewUuid | Entry::CloneResetTimeInfo) const;
|
||||
void copyDataFrom(const Group* other);
|
||||
|
||||
QList<Entry*> search(const QString& searchTerm, Qt::CaseSensitivity caseSensitivity,
|
||||
|
Loading…
x
Reference in New Issue
Block a user