summaryrefslogtreecommitdiff
path: root/src/webchannel
diff options
context:
space:
mode:
Diffstat (limited to 'src/webchannel')
-rw-r--r--src/webchannel/qmetaobjectpublisher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webchannel/qmetaobjectpublisher.cpp b/src/webchannel/qmetaobjectpublisher.cpp
index 229afa2..5201a4a 100644
--- a/src/webchannel/qmetaobjectpublisher.cpp
+++ b/src/webchannel/qmetaobjectpublisher.cpp
@@ -194,7 +194,9 @@ QJsonObject QMetaObjectPublisher::classInfoForObject(const QObject *object) cons
data[KEY_SIGNALS] = qtSignals;
data[KEY_METHODS] = qtMethods;
data[KEY_PROPERTIES] = qtProperties;
- data[KEY_ENUMS] = qtEnums;
+ if (!qtEnums.isEmpty()) {
+ data[KEY_ENUMS] = qtEnums;
+ }
return data;
}