Commit e17c263 1 parent 05a3ce3 commit e17c263 Copy full SHA for e17c263
File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,14 @@ void QgsSettingsTree::refresh()
131
131
settings->sync ();
132
132
133
133
// add any settings not in QgsSettings object, so it will show up in the tree view
134
- if ( settings )
134
+ QMap<QString, QStringList>::const_iterator it = settingsMap.constBegin ();
135
+ while ( it != settingsMap.constEnd () )
135
136
{
136
- QMap<QString, QStringList>::const_iterator it = settingsMap.constBegin ();
137
- while ( it != settingsMap.constEnd () )
137
+ if ( ! settings->contains ( it.key () ) )
138
138
{
139
- if ( ! settings->contains ( it.key () ) )
140
- {
141
- settings->setValue ( it.key (), it.value ().at ( 3 ) );
142
- }
143
- ++it;
139
+ settings->setValue ( it.key (), it.value ().at ( 3 ) );
144
140
}
141
+ ++it;
145
142
}
146
143
147
144
updateChildItems ( nullptr );
You can’t perform that action at this time.
0 commit comments