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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8cf8d490d6
commit
583d8d653a
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user