diff options
-rw-r--r-- | commands/command_divelist.cpp | 2 | ||||
-rw-r--r-- | core/subsurface-qt/divelistnotifier.h | 1 |
2 files changed, 3 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() diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index 07750de90..2cd6eefcb 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -91,6 +91,7 @@ signals: void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives); void divesChanged(const QVector<dive *> &dives, DiveField field); void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives); + void divesImported(); // A general signal when multiple dives have been imported. void cylindersReset(const QVector<dive *> &dives); void cylinderAdded(dive *d, int pos); |