From 9aaf8a2009d4d35d1893b3845bcfbc502cbb57a2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 20 Sep 2014 01:42:54 +0200 Subject: [PATCH] * Select current item when jumping to track in TrackView. --- src/libtomahawk/playlist/TrackView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/playlist/TrackView.cpp b/src/libtomahawk/playlist/TrackView.cpp index b94dfda27..d3f0e5871 100644 --- a/src/libtomahawk/playlist/TrackView.cpp +++ b/src/libtomahawk/playlist/TrackView.cpp @@ -785,6 +785,9 @@ bool TrackView::jumpToCurrentTrack() { scrollTo( proxyModel()->currentIndex(), QAbstractItemView::PositionAtCenter ); + selectionModel()->select( QModelIndex(), QItemSelectionModel::SelectCurrent ); + select( proxyModel()->currentIndex() ); + selectionModel()->select( proxyModel()->currentIndex(), QItemSelectionModel::SelectCurrent ); return true; }