Skip to content

Commit e045b36

Browse files
committedMar 2, 2017
Fixes segfault in QgsSettings::clear, fixes #16233
mGlobalSettings is read-only and can be a nullptr that QSettings instance should never be modified nor assumed to be instanciated
1 parent 1752d44 commit e045b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgssettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void QgsSettings::sync()
182182

183183
void QgsSettings::remove( const QString &key )
184184
{
185-
mGlobalSettings->remove( key );
185+
mUserSettings->remove( key );
186186
}
187187

188188
QString QgsSettings::prefixedKey( const QString &key, const Section section ) const

1 commit comments

Comments
 (1)

elpaso commented on Mar 2, 2017

@elpaso
ContributorAuthor

Wrong commit message, the fix was obviously in remove function

Please sign in to comment.