Skip to content

Commit 768a8da

Browse files
committedJun 3, 2019
Fix QgsSettings::enumValue resolution when used with a non-default section
(cherry picked from commit 10c686b)
1 parent 7229a7d commit 768a8da

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
@@ -248,7 +248,7 @@ class CORE_EXPORT QgsSettings : public QObject
248248
if ( metaEnum.isValid() )
249249
{
250250
// read as string
251-
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ) ).toString().toUtf8();
251+
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ), section ).toString().toUtf8();
252252
const char *vs = ba.data();
253253
v = static_cast<T>( metaEnum.keyToValue( vs, &ok ) );
254254
if ( ok )

0 commit comments

Comments
 (0)
Please sign in to comment.