summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index e750e72aa..89ee6a6e7 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -536,7 +536,7 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
if (currentLayout == DiveTripModel::TREE) {
popup.addAction(tr("expand all"), this, SLOT(expandAll()));
popup.addAction(tr("collapse all"), this, SLOT(collapseAll()));
- collapseAction = popup.addAction(tr("collapse"), this, SLOT(collapseAll()));
+ collapseAction = popup.addAction(tr("collapse others"), this, SLOT(collapseAll()));
if (d) {
popup.addAction(tr("remove dive(s) from trip"), this, SLOT(removeFromTrip()));
popup.addAction(tr("create new trip above"), this, SLOT(newTripAbove()));
@@ -560,6 +560,7 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
if (actionTaken == collapseAction && collapseAction) {
this->setAnimated(false);
selectDive(current_dive, true);
+ scrollTo(selectedIndexes().first());
this->setAnimated(true);
}
event->accept();