Skip to content

Commit c81526c

Browse files
committedFeb 28, 2019
Check for globalsettings and don't crash
1 parent cd5fedf commit c81526c

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
@@ -288,7 +288,7 @@ void QgsSettings::setValue( const QString &key, const QVariant &value, const Qgs
288288
{
289289
mUserSettings->setValue( prefixedKey( key, section ), value );
290290
}
291-
else if ( mGlobalSettings->value( prefixedKey( key, section ) ) == currentValue )
291+
else if ( mGlobalSettings && mGlobalSettings->value( prefixedKey( key, section ) ) == currentValue )
292292
{
293293
mUserSettings->remove( prefixedKey( key, section ) );
294294
}

0 commit comments

Comments
 (0)
Please sign in to comment.