aboutsummaryrefslogtreecommitdiffstats
path: root/commands/command_divelist.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-14 16:59:35 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-14 10:01:50 -0800
commit52d5125926f430a86dc14a60911b04b8072c712a (patch)
tree03dc14f4e4d7d439fc145b7273bbb511eef90e03 /commands/command_divelist.cpp
parent67d956b44c8d15eb661596ffde31e348fcbe7bb4 (diff)
downloadsubsurface-52d5125926f430a86dc14a60911b04b8072c712a.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command_divelist.cpp')
-rw-r--r--commands/command_divelist.cpp2
1 files changed, 2 insertions, 0 deletions
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()