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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user