From 9f573df971d84a54d5b5daba73a2f9e1498d7ee2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 18 Nov 2019 18:19:29 +0100 Subject: Dive list: update selection after clearing model When clearing the model the selection is cleared. Send the according signal. Signed-off-by: Berthold Stoeger --- qt-models/divetripmodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models/divetripmodel.cpp') 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(); } -- cgit v1.2.3-70-g09d2