Skip to content
Permalink
Browse files

Check for globalsettings and don't crash

  • Loading branch information
elpaso committed Feb 28, 2019
1 parent cd5fedf commit c81526cc7ad589ac5cf7aefab65f0f19902a0acd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgssettings.cpp
@@ -288,7 +288,7 @@ void QgsSettings::setValue( const QString &key, const QVariant &value, const Qgs
{
mUserSettings->setValue( prefixedKey( key, section ), value );
}
else if ( mGlobalSettings->value( prefixedKey( key, section ) ) == currentValue )
else if ( mGlobalSettings && mGlobalSettings->value( prefixedKey( key, section ) ) == currentValue )
{
mUserSettings->remove( prefixedKey( key, section ) );
}

0 comments on commit c81526c

Please sign in to comment.
You can’t perform that action at this time.