Navigation Menu

Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 05a3ce3 commit e17c263
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app/qgssettingstree.cpp
Expand Up @@ -131,17 +131,14 @@ void QgsSettingsTree::refresh()
settings->sync();

// add any settings not in QgsSettings object, so it will show up in the tree view
if ( settings )
QMap<QString, QStringList>::const_iterator it = settingsMap.constBegin();
while ( it != settingsMap.constEnd() )
{
QMap<QString, QStringList>::const_iterator it = settingsMap.constBegin();
while ( it != settingsMap.constEnd() )
if ( ! settings->contains( it.key() ) )
{
if ( ! settings->contains( it.key() ) )
{
settings->setValue( it.key(), it.value().at( 3 ) );
}
++it;
settings->setValue( it.key(), it.value().at( 3 ) );
}
++it;
}

updateChildItems( nullptr );
Expand Down

0 comments on commit e17c263

Please sign in to comment.