Skip to content

Commit

Permalink
Check for globalsettings and don't crash
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 28, 2019
1 parent cd5fedf commit c81526c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssettings.cpp
Expand Up @@ -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 ) );
}
Expand Down

0 comments on commit c81526c

Please sign in to comment.