mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
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>
This commit is contained in:
parent
67d956b44c
commit
52d5125926
2 changed files with 3 additions and 0 deletions
|
@ -565,6 +565,8 @@ void ImportDives::redoit()
|
||||||
emit diveListNotifier.filterPresetAdded(filterPresetsToRemove.back());
|
emit diveListNotifier.filterPresetAdded(filterPresetsToRemove.back());
|
||||||
}
|
}
|
||||||
filterPresetsToAdd.clear();
|
filterPresetsToAdd.clear();
|
||||||
|
|
||||||
|
emit diveListNotifier.divesImported();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportDives::undoit()
|
void ImportDives::undoit()
|
||||||
|
|
|
@ -91,6 +91,7 @@ signals:
|
||||||
void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives);
|
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 divesChanged(const QVector<dive *> &dives, DiveField field);
|
||||||
void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives);
|
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 cylindersReset(const QVector<dive *> &dives);
|
||||||
void cylinderAdded(dive *d, int pos);
|
void cylinderAdded(dive *d, int pos);
|
||||||
|
|
Loading…
Reference in a new issue