Commit 82eed9eb authored by Pavlov Konstantin's avatar Pavlov Konstantin

QT4: Jump to current item on itemchange. Patch by Ilkka Ollakka.

parent 2293854f
...@@ -144,6 +144,7 @@ void StandardPLPanel::toggleRandom() ...@@ -144,6 +144,7 @@ void StandardPLPanel::toggleRandom()
void StandardPLPanel::handleExpansion( const QModelIndex &index ) void StandardPLPanel::handleExpansion( const QModelIndex &index )
{ {
QModelIndex parent; QModelIndex parent;
view->scrollTo( index, QAbstractItemView::EnsureVisible );
if( model->isCurrent( index ) ) if( model->isCurrent( index ) )
{ {
parent = index; parent = 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