mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Select current item when jumping to track in TrackView.
This commit is contained in:
@@ -785,6 +785,9 @@ bool
|
|||||||
TrackView::jumpToCurrentTrack()
|
TrackView::jumpToCurrentTrack()
|
||||||
{
|
{
|
||||||
scrollTo( proxyModel()->currentIndex(), QAbstractItemView::PositionAtCenter );
|
scrollTo( proxyModel()->currentIndex(), QAbstractItemView::PositionAtCenter );
|
||||||
|
selectionModel()->select( QModelIndex(), QItemSelectionModel::SelectCurrent );
|
||||||
|
select( proxyModel()->currentIndex() );
|
||||||
|
selectionModel()->select( proxyModel()->currentIndex(), QItemSelectionModel::SelectCurrent );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user