aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src')
-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;