Commit c4e943d7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: gotoPLayingItem get's current index from model, not from view

parent 50563b1b
......@@ -97,6 +97,7 @@ public:
int role = Qt::DisplayRole ) const;
QModelIndex index( int r, int c, const QModelIndex &parent ) const;
QModelIndex index( PLItem *, int c ) const;
QModelIndex currentIndex( ) { return index( currentItem, 0 ); };
int itemId( const QModelIndex &index ) const;
bool isCurrent( const QModelIndex &index ) const;
QModelIndex parent( const QModelIndex &index ) const;
......
......@@ -206,7 +206,7 @@ void StandardPLPanel::toggleRandom()
void StandardPLPanel::gotoPlayingItem()
{
view->scrollTo( view->currentIndex() );
view->scrollTo( model->currentIndex() );
}
void StandardPLPanel::handleExpansion( const QModelIndex& index )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment