mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Fix QgsSettings::enumValue resolution when used with a non-default section
This commit is contained in:
parent
dfa6aa1ed1
commit
10c686ba32
@ -257,7 +257,7 @@ class CORE_EXPORT QgsSettings : public QObject
|
||||
if ( metaEnum.isValid() )
|
||||
{
|
||||
// read as string
|
||||
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ) ).toString().toUtf8();
|
||||
QByteArray ba = value( key, metaEnum.valueToKey( defaultValue ), section ).toString().toUtf8();
|
||||
const char *vs = ba.data();
|
||||
v = static_cast<T>( metaEnum.keyToValue( vs, &ok ) );
|
||||
if ( ok )
|
||||
|
Loading…
x
Reference in New Issue
Block a user