diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-18 17:34:52 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-18 17:34:52 +0200 |
commit | 901e9dcbf13b658545d5bc1e2d96ccac2ed61111 (patch) | |
tree | 69dba24a408692b33b92d33ed0439cd8a13dd272 /libqmenumodel | |
parent | 3def677b32e7cf1916de2cdf6be01a7a0cc43d68 (diff) | |
download | qmenumodel-901e9dcbf13b658545d5bc1e2d96ccac2ed61111.tar.gz qmenumodel-901e9dcbf13b658545d5bc1e2d96ccac2ed61111.tar.bz2 qmenumodel-901e9dcbf13b658545d5bc1e2d96ccac2ed61111.zip |
converter: stop looking if w'eve no entryType
Diffstat (limited to 'libqmenumodel')
-rw-r--r-- | libqmenumodel/src/converter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libqmenumodel/src/converter.cpp b/libqmenumodel/src/converter.cpp index aef34d0..1b63272 100644 --- a/libqmenumodel/src/converter.cpp +++ b/libqmenumodel/src/converter.cpp @@ -340,6 +340,8 @@ GVariant* Converter::toGVariantWithSchema(const QVariant &value, const char* sch if (data) { g_variant_builder_add_value(b, data); entryType = g_variant_type_next(entryType); + if (!entryType) + break; } else { ok = false; qWarning() << "Failed to convert list to array with schema:" << schema; |