Skip to content
Browse files
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
  • Loading branch information
elpaso committed Mar 2, 2017
1 parent 1752d44 commit e045b369cf6cb5700be8cc783f32f8af06c93485
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgssettings.cpp
@@ -182,7 +182,7 @@ void QgsSettings::sync()

void QgsSettings::remove( const QString &key )
mGlobalSettings->remove( key );
mUserSettings->remove( key );

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

1 comment on commit e045b36


This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso commented on e045b36 Mar 2, 2017

Wrong commit message, the fix was obviously in remove function

Please sign in to comment.