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>
This commit is contained in:
Berthold Stoeger 2019-11-18 18:19:29 +01:00 committed by Dirk Hohndel
parent ecb517d496
commit 9f573df971
2 changed files with 2 additions and 0 deletions

View file

@ -376,6 +376,7 @@ void DiveTripModelBase::clear()
{
beginResetModel();
clear_dive_file_data();
emit diveListNotifier.divesSelected({}, nullptr); // Inform profile, etc of changed selection
endResetModel();
}