diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-13 09:26:53 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-11-18 16:50:09 -0800 |
commit | 911edfca712a046944de6d033cc4b8dd50cedfc3 (patch) | |
tree | 249edec4b36a96a365f0a9bea928055fdec42d96 /qt-models/divetripmodel.h | |
parent | 64e6e435f82801f4f440ef5b1caf58a91a7c9929 (diff) | |
download | subsurface-911edfca712a046944de6d033cc4b8dd50cedfc3.tar.gz |
Dive list: update position of trip if data changed
If the date of a dive changed, it might be necessary to reorder
the trips, as the date of the trip changed. Although this seems
like an odd usecase, move the trip if necessary, for consistency's
sake.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 6d34d30bb..aab154069 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -115,6 +115,7 @@ private: // Addition and deletion of dives void addDivesToTrip(int idx, const QVector<dive *> &dives); + void topLevelChanged(int idx); dive *diveOrNull(const QModelIndex &index) const; // Returns a dive if this index represents a dive, null otherwise dive_or_trip tripOrDive(const QModelIndex &index) const; |