mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Keep selected dive in view
Somehow we managed to break this. Again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a737f59553
commit
b115423aa1
1 changed files with 1 additions and 1 deletions
|
@ -219,9 +219,9 @@ void DiveListView::currentChanged(const QModelIndex& current, const QModelIndex&
|
|||
if (!dive) // it's a trip! select first child.
|
||||
dive = (struct dive*) model->data(current.child(0,0), TreeItemDT::DIVE_ROLE).value<void*>();
|
||||
selectedDive = get_divenr(dive);
|
||||
scrollTo(current);
|
||||
if (selectedDive == selected_dive)
|
||||
return;
|
||||
scrollTo(current);
|
||||
Q_EMIT currentDiveChanged(selectedDive);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue