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/gpslistmodel.cpp | |
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/gpslistmodel.cpp')
-rw-r--r-- | qt-models/gpslistmodel.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/gpslistmodel.cpp b/qt-models/gpslistmodel.cpp index c463c3ed2..5fa7d1081 100644 --- a/qt-models/gpslistmodel.cpp +++ b/qt-models/gpslistmodel.cpp @@ -67,4 +67,3 @@ GpsListModel *GpsListModel::instance() static GpsListModel self; return &self; } - |