diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-25 17:45:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-25 23:24:06 +0100 |
commit | 583d8d653a4d6becf1c695e6f924cfc81ef7fb39 (patch) | |
tree | b967f5322a484e31766c9a7f20bf66a66ba006fe /desktop-widgets | |
parent | 8cf8d490d6b81c2b8ca6eb4a4852ffb2606b12c2 (diff) | |
download | subsurface-583d8d653a4d6becf1c695e6f924cfc81ef7fb39.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/divelistview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() |