mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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:
parent
8cf8d490d6
commit
583d8d653a
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue