summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 39f0d6c..17fc474 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -228,6 +228,7 @@ bool Dialog::selectSession(const QString& name) {
ui->treeView->selectionModel()->clear();
ui->treeView->selectionModel()->select(index, QItemSelectionModel::Select);
ui->treeView->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select);
+ ui->treeView->scrollTo(index);
return true;
}
}