diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-18 18:19:29 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-19 21:13:40 -0800 |
commit | 9f573df971d84a54d5b5daba73a2f9e1498d7ee2 (patch) | |
tree | 69c09d487b9f20d45ad1b49fbcda992bfac886bf /qt-models | |
parent | ecb517d49678e1d2e2dfdbcca5819d81b1f288ea (diff) | |
download | subsurface-9f573df971d84a54d5b5daba73a2f9e1498d7ee2.tar.gz |
Dive list: update selection after clearing model
When clearing the model the selection is cleared. Send the according
signal.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divetripmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 2a83b61da..d2e6a634d 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -376,6 +376,7 @@ void DiveTripModelBase::clear() { beginResetModel(); clear_dive_file_data(); + emit diveListNotifier.divesSelected({}, nullptr); // Inform profile, etc of changed selection endResetModel(); } |