diff options
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index da970fed..1c832b1a 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -436,14 +436,14 @@ void MainUI::setCurrentDir(QString dir){ ui->tree_dir_view->selectionModel()->clearSelection(); if(olddir.startsWith(rawdir)){ ui->tree_dir_view->setCurrentIndex( fsmod->index(olddir)); - ui->tree_dir_view->scrollTo( fsmod->index(olddir)); + ui->tree_dir_view->scrollTo( fsmod->index(olddir), QAbstractItemView::PositionAtTop); } }else{ ui->list_dir_view->setRootIndex(fsmod->index(dir)); ui->list_dir_view->selectionModel()->clearSelection(); if(olddir.startsWith(rawdir)){ ui->list_dir_view->setCurrentIndex( fsmod->index(olddir)); - ui->list_dir_view->scrollTo( fsmod->index(olddir)); + ui->list_dir_view->scrollTo( fsmod->index(olddir), QAbstractItemView::PositionAtTop); } } //Adjust the tab data |