Skip to content

Commit 10c686b

Browse files
committedMay 29, 2019
Fix QgsSettings::enumValue resolution when used with a non-default section
1 parent dfa6aa1 commit 10c686b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgssettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class CORE_EXPORT QgsSettings : public QObject
257257
if ( metaEnum.isValid() )
258258
{
259259
// read as string
260-
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ) ).toString().toUtf8();
260+
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ), section ).toString().toUtf8();
261261
const char *vs = ba.data();
262262
v = static_cast<T>( metaEnum.keyToValue( vs, &ok ) );
263263
if ( ok )

0 commit comments

Comments
 (0)
Please sign in to comment.