1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Select current item when jumping to track in TrackView.

This commit is contained in:
Christian Muehlhaeuser
2014-09-20 01:42:54 +02:00
parent 4ad7e0e311
commit 9aaf8a2009

View File

@@ -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;
}