From 6b54d83cc3a0a8687027662680850bcf84506222 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 21 Feb 2018 13:45:37 +0100 Subject: Pass around the message's entities in the log view --- framework/src/sinkfabric.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'framework') diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 7d780ce3..b2281a5d 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp @@ -152,6 +152,11 @@ public: QVariantMap message; if (notification.type == Sink::Notification::Warning) { message["type"] = "warning"; + QStringList entities; + for(const auto &entity : notification.entities) { + entities << QString{entity}; + } + message["entities"] = entities; message["resource"] = QString{notification.resource}; if (notification.code == Sink::ApplicationDomain::TransmissionError) { message["message"] = QObject::tr("Failed to send message."); -- cgit v1.2.3