Fixes #940 : segfault when searching after merging

This commit is contained in:
Louis-Bertrand Varin 2017-09-11 16:09:38 -04:00 committed by TheZ3ro
parent d59ca0a9cc
commit faf36190bd

View File

@ -904,7 +904,8 @@ void Group::resolveConflict(Entry* existingEntry, Entry* otherEntry)
if (timeExisting < timeOther) {
// only if other entry is newer, replace existing one
removeEntry(existingEntry);
addEntry(otherEntry->clone(Entry::CloneNoFlags));
clonedEntry = otherEntry->clone(Entry::CloneNoFlags);
clonedEntry->setGroup(this);
}
break;