mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
fulltext: don't call words.clear() in FullText::populate()
This function was not meant to be called with already existing data. However, if it was, it cleared the words without clearing the fulltext caches of the dives. This lead to crashes. Be more resilient by not clearing the words: Already existing dives are unregistered during the process of populating anyway. So this now *should* work if new dives are added to the dive list and then this function is called. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d9599589c7
commit
3a74f65063
1 changed files with 0 additions and 1 deletions
|
@ -146,7 +146,6 @@ void FullText::populate()
|
|||
// we want this to be two calls as the second text is overwritten below by the lines starting with "\r"
|
||||
uiNotification(QObject::tr("Create full text index"));
|
||||
uiNotification(QObject::tr("start processing"));
|
||||
words.clear();
|
||||
int i;
|
||||
dive *d;
|
||||
for_each_dive(i, d) {
|
||||
|
|
Loading…
Add table
Reference in a new issue