aboutsummaryrefslogtreecommitdiffstats
path: root/commands/command_divelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command_divelist.cpp')
-rw-r--r--commands/command_divelist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp
index 8f6189c1e..fe59ecb6c 100644
--- a/commands/command_divelist.cpp
+++ b/commands/command_divelist.cpp
@@ -73,6 +73,7 @@ dive *DiveListBase::addDive(DiveToAdd &d)
res->hidden_by_filter = true;
int idx = dive_table_get_insertion_index(&dive_table, res);
+ fulltext_register(res); // Register the dive's fulltext cache
add_to_dive_table(&dive_table, idx, res); // Return ownership to backend
invalidate_dive_cache(res); // Ensure that dive is written in git_save()