Skip to content

Commit

Permalink
Fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Apr 6, 2021
1 parent 7679239 commit 4e959f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/settings/qgssettingsentry.h
Expand Up @@ -718,7 +718,7 @@ class CORE_EXPORT QgsSettingsEntryEnum : public QgsSettingsEntryBase
T value( const QString &dynamicKeyPart = QString() ) const
{
return QgsSettings().enumValue( key( dynamicKeyPart ),
defaultValueAsVariant().value<T>(),
defaultValue(),
section() );
}

Expand Down Expand Up @@ -826,7 +826,7 @@ class CORE_EXPORT QgsSettingsEntryFlag : public QgsSettingsEntryBase
T value( const QString &dynamicKeyPart = QString() ) const
{
return QgsSettings().flagValue( key( dynamicKeyPart ),
defaultValueAsVariant().value<T>(),
defaultValue(),
section() );
}

Expand Down

0 comments on commit 4e959f9

Please sign in to comment.