Skip to content
Permalink
Browse files
Fix default value
  • Loading branch information
domi4484 committed Apr 6, 2021
1 parent 7679239 commit 4e959f95bf0129ce185c84efa32d5af25b3286b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/settings/qgssettingsentry.h
@@ -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() );
}

@@ -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() );
}

0 comments on commit 4e959f9

Please sign in to comment.