From 583d8d653a4d6becf1c695e6f924cfc81ef7fb39 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 25 Oct 2018 17:45:59 +0200 Subject: Dive list: emit selectionChanged signal in filterFinished() In commit 9829e49815de1b81b5c9848b71eaa810faab2bcf the dive selection code was moved from the filter to the dive list. As a consequence of that change, the selectionChanged signal was not emitted anymore and therefore the map widget was not informed of the new dive site list. This had funky effects on the dive-site editing. Notably, changing the location would move the map, but not update the flag. Explicitly emit selectionChanged in filterFinished() to fix dive site editing. Signed-off-by: Berthold Stoeger --- desktop-widgets/divelistview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 627e72c24..d2685caa2 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -1062,6 +1062,7 @@ void DiveListView::filterFinished() // If there are no more selected dives, select the first visible dive if (!selectionModel()->hasSelection()) selectFirstDive(); + emit diveListNotifier.selectionChanged(); } QString DiveListView::lastUsedImageDir() -- cgit v1.2.3-70-g09d2