Skip to content
Permalink
Browse files
Remove unnecessary null check
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 05a3ce3 commit e17c263e7b3fca1a75f4e95023e4686e6aab5eb5
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/app/qgssettingstree.cpp
@@ -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 );

0 comments on commit e17c263

Please sign in to comment.