mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Don't try to reset hover-state if there is none. This speeds up collection browsing.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -687,7 +687,6 @@ TrackView::wheelEvent( QWheelEvent* event )
|
||||
QTreeView::wheelEvent( event );
|
||||
|
||||
m_delegate->resetHoverIndex();
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user