Skip to content
Permalink
Browse files

Spelling

  • Loading branch information
elpaso committed Mar 3, 2019
1 parent a3ff4e6 commit 19d9f1c4436202dee73c69d08cb9b99b37c72e3f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgssettings.cpp
@@ -283,8 +283,8 @@ void QgsSettings::setValue( const QString &key, const QVariant &value, const Qgs
// TODO: add valueChanged signal
// Do not store if it hasn't changed from default value
// Fist check if the values are different and if at least one of them is valid.
// The valid check is required because different invalid QVariant flavours
// like QVariant(QVariant::String) and QVariant(QVariant::Int ))
// The valid check is required because different invalid QVariant types
// like QVariant(QVariant::String) and QVariant(QVariant::Int))
// may be considered different and we don't want to store the value in that case.
QVariant currentValue { QgsSettings::value( prefixedKey( key, section ) ) };
if ( ( currentValue.isValid() || value.isValid() ) && ( currentValue != value ) )

0 comments on commit 19d9f1c

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