aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 17:34:52 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 17:34:52 +0200
commit901e9dcbf13b658545d5bc1e2d96ccac2ed61111 (patch)
tree69dba24a408692b33b92d33ed0439cd8a13dd272 /libqmenumodel
parent3def677b32e7cf1916de2cdf6be01a7a0cc43d68 (diff)
downloadqmenumodel-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.cpp2
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;