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
This commit is contained in:
Alessandro Pasotti 2017-03-02 08:11:27 +01:00
parent 1752d446e7
commit e045b369cf

View File

@ -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