diff options
-rw-r--r-- | qt-ui/divelistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 6306f5f8d..b75dda1f5 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -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); } |