1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-15 05:22:35 +02:00

Don't try to reset hover-state if there is none. This speeds up collection browsing.

This commit is contained in:
Christian Muehlhaeuser 2016-02-17 12:15:11 +01:00
parent 6b84630ba1
commit 198201aec2
2 changed files with 1 additions and 3 deletions

View File

@ -902,7 +902,7 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con
void
PlaylistItemDelegate::resetHoverIndex()
{
if ( !m_model )
if ( !m_model || !m_hoveringOver.isValid() )
return;
QPersistentModelIndex idx = m_hoveringOver;
@ -922,7 +922,6 @@ PlaylistItemDelegate::resetHoverIndex()
}
emit updateIndex( idx );
m_view->repaint();
}

View File

@ -687,7 +687,6 @@ TrackView::wheelEvent( QWheelEvent* event )
QTreeView::wheelEvent( event );
m_delegate->resetHoverIndex();
repaint();
}