mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clear selected trips after restoring selection
The rememberSelection() / restoreSelection() functions ONLY handle selected dives, not selected trips. This is a bit of a misfeature, but because of that we need to make sure we clear our notion of selected trips when we use restoreSelection() Fixes #285 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1a876a85b9
commit
33f7c6bb28
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ void DiveListView::rememberSelection()
|
||||||
void DiveListView::restoreSelection()
|
void DiveListView::restoreSelection()
|
||||||
{
|
{
|
||||||
unselectDives();
|
unselectDives();
|
||||||
|
selectedTrips.clear(); // I wish we didn't lose those...
|
||||||
Q_FOREACH(int i, selectedDives) {
|
Q_FOREACH(int i, selectedDives) {
|
||||||
selectDive(i);
|
selectDive(i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue