From 3245d602dbd0a96409987a8dba93879c0e9f77b0 Mon Sep 17 00:00:00 2001 From: Asif Mahmud Shimon Date: Fri, 14 Aug 2020 20:52:53 +0600 Subject: [PATCH] retrieving string list fix --- src/libcalamares/utils/Variant.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcalamares/utils/Variant.cpp b/src/libcalamares/utils/Variant.cpp index fa5e420b6..a6aad74ce 100644 --- a/src/libcalamares/utils/Variant.cpp +++ b/src/libcalamares/utils/Variant.cpp @@ -67,7 +67,7 @@ getStringList( const QVariantMap& map, const QString& key, const QStringList& d if ( map.contains( key ) ) { auto v = map.value( key ); - if ( v.type() == QVariant::StringList ) + if ( v.canConvert( QMetaType::QStringList ) ) { return v.toStringList(); } @@ -81,7 +81,7 @@ getInteger( const QVariantMap& map, const QString& key, qint64 d ) if ( map.contains( key ) ) { auto v = map.value( key ); - return v.toString().toLongLong(nullptr, 0); + return v.toString().toLongLong( nullptr, 0 ); } return d; } @@ -92,7 +92,7 @@ getUnsignedInteger( const QVariantMap& map, const QString& key, quint64 d ) if ( map.contains( key ) ) { auto v = map.value( key ); - return v.toString().toULongLong(nullptr, 0); + return v.toString().toULongLong( nullptr, 0 ); } return d; }