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>
This commit is contained in:
Berthold Stoeger 2020-09-12 23:38:45 +02:00 committed by Dirk Hohndel
parent 3a2f1b17b6
commit 4467477389
3 changed files with 11 additions and 1 deletions

View file

@ -67,4 +67,3 @@ GpsListModel *GpsListModel::instance()
static GpsListModel self;
return &self;
}