Commit d38706da authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: small loop change

parent eac9464c
......@@ -250,7 +250,7 @@ void LocationBar::setIndex( const QModelIndex &index )
QModelIndex i = index;
bool first = true;
while( true )
while( i.isValid() )
{
PLItem *item = model->getItem( i );
......@@ -271,8 +271,7 @@ void LocationBar::setIndex( const QModelIndex &index )
first = false;
if( i.isValid() ) i = i.parent();
else break;
i = i.parent();
}
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