diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-09-12 23:38:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-25 13:59:04 -0700 |
commit | 4467477389cf0d6de8e3797b1941c07162896907 (patch) | |
tree | 39c2f49f9e4f68f2d46c719254f4a213884b3619 /qt-models/divecomputermodel.h | |
parent | 3a2f1b17b65b8c0eca12d60f94a16d573c13537d (diff) | |
download | subsurface-4467477389cf0d6de8e3797b1941c07162896907.tar.gz |
models: update DiveComputerModel when core data is reset
To implement undo-semantics, we want a longer-lived dive-computer-model
(currently, it is regenerated when the dialog is opened). Therefore, it
must be reloaded when the core data is reset. Do this like for other
models: listen to the dataReset() signal of DiveListNotifier.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divecomputermodel.h')
-rw-r--r-- | qt-models/divecomputermodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divecomputermodel.h b/qt-models/divecomputermodel.h index 7f3d4171f..17f145f78 100644 --- a/qt-models/divecomputermodel.h +++ b/qt-models/divecomputermodel.h @@ -25,6 +25,7 @@ public: public slots: void remove(const QModelIndex &index); + void update(); private: std::vector<device> dcs; |