From 52d5125926f430a86dc14a60911b04b8072c712a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 14 Nov 2020 16:59:35 +0100 Subject: undo: add a general dives-imported signal Add a general dives-imported signal for those cases where we want to fully rebuild models, notably, the completion models. The divesAdded signals are too fine, because they are sent per trip and we don't want to reload these models multiple times per import. Signed-off-by: Berthold Stoeger --- commands/command_divelist.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands') diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp index 0917f71e5..b19075581 100644 --- a/commands/command_divelist.cpp +++ b/commands/command_divelist.cpp @@ -565,6 +565,8 @@ void ImportDives::redoit() emit diveListNotifier.filterPresetAdded(filterPresetsToRemove.back()); } filterPresetsToAdd.clear(); + + emit diveListNotifier.divesImported(); } void ImportDives::undoit() -- cgit v1.2.3-70-g09d2