mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 12:38:12 -04:00
Fixes #940 : segfault when searching after merging
This commit is contained in:
parent
d59ca0a9cc
commit
faf36190bd
1 changed files with 2 additions and 1 deletions
|
@ -904,7 +904,8 @@ void Group::resolveConflict(Entry* existingEntry, Entry* otherEntry)
|
||||||
if (timeExisting < timeOther) {
|
if (timeExisting < timeOther) {
|
||||||
// only if other entry is newer, replace existing one
|
// only if other entry is newer, replace existing one
|
||||||
removeEntry(existingEntry);
|
removeEntry(existingEntry);
|
||||||
addEntry(otherEntry->clone(Entry::CloneNoFlags));
|
clonedEntry = otherEntry->clone(Entry::CloneNoFlags);
|
||||||
|
clonedEntry->setGroup(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue