diff options
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r-- | framework/src/sinkfabric.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index b2281a5d..8492f272 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -152,11 +152,13 @@ public: | |||
152 | QVariantMap message; | 152 | QVariantMap message; |
153 | if (notification.type == Sink::Notification::Warning) { | 153 | if (notification.type == Sink::Notification::Warning) { |
154 | message["type"] = "warning"; | 154 | message["type"] = "warning"; |
155 | QStringList entities; | 155 | |
156 | QVariantList entities; | ||
156 | for(const auto &entity : notification.entities) { | 157 | for(const auto &entity : notification.entities) { |
157 | entities << QString{entity}; | 158 | entities << entity; |
158 | } | 159 | } |
159 | message["entities"] = entities; | 160 | message["entities"] = entities; |
161 | |||
160 | message["resource"] = QString{notification.resource}; | 162 | message["resource"] = QString{notification.resource}; |
161 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { | 163 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { |
162 | message["message"] = QObject::tr("Failed to send message."); | 164 | message["message"] = QObject::tr("Failed to send message."); |