Dive list: emit selectionChanged signal in filterFinished()

In commit 9829e49815 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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-25 17:45:59 +02:00 committed by Dirk Hohndel
parent 8cf8d490d6
commit 583d8d653a

View file

@ -1062,6 +1062,7 @@ void DiveListView::filterFinished()
// If there are no more selected dives, select the first visible dive // If there are no more selected dives, select the first visible dive
if (!selectionModel()->hasSelection()) if (!selectionModel()->hasSelection())
selectFirstDive(); selectFirstDive();
emit diveListNotifier.selectionChanged();
} }
QString DiveListView::lastUsedImageDir() QString DiveListView::lastUsedImageDir()