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