Commit de7b2fd2 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Revert "Qt4: small loop change"

This reverts commit d38706da.

Changed back, as changed loop didn't do same as original did
parent e9976aca
......@@ -250,7 +250,7 @@ void LocationBar::setIndex( const QModelIndex &index )
QModelIndex i = index;
bool first = true;
while( i.isValid() )
while( true )
{
PLItem *item = model->getItem( i );
......@@ -271,7 +271,8 @@ void LocationBar::setIndex( const QModelIndex &index )
first = false;
i = i.parent();
if( i.isValid() ) i = i.parent();
else break;
}
QString prefix;
......
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