summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/Notifications.qml1
-rw-r--r--framework/src/sinkfabric.cpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/framework/qml/Notifications.qml b/framework/qml/Notifications.qml
index 18f2a68a..1593f416 100644
--- a/framework/qml/Notifications.qml
+++ b/framework/qml/Notifications.qml
@@ -28,5 +28,6 @@ Item {
28 property string loginError: "loginError" 28 property string loginError: "loginError"
29 property string hostNotFoundError: "hostNotFoundError" 29 property string hostNotFoundError: "hostNotFoundError"
30 property string connectionError: "connectionError" 30 property string connectionError: "connectionError"
31 property string transmissionError: "transmissionError"
31} 32}
32 33
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp
index 897534b9..58ddae83 100644
--- a/framework/src/sinkfabric.cpp
+++ b/framework/src/sinkfabric.cpp
@@ -152,8 +152,10 @@ 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 message["resource"] = QString{notification.resource};
155 if (notification.code == Sink::ApplicationDomain::TransmissionError) { 156 if (notification.code == Sink::ApplicationDomain::TransmissionError) {
156 message["message"] = QObject::tr("Failed to send message."); 157 message["message"] = QObject::tr("Failed to send message.");
158 message["subtype"] = "transmissionError";
157 } else { 159 } else {
158 return; 160 return;
159 } 161 }
@@ -186,7 +188,8 @@ public:
186 message["message"] = QObject::tr("No credentials available."); 188 message["message"] = QObject::tr("No credentials available.");
187 break; 189 break;
188 default: 190 default:
189 message["message"] = QObject::tr("An unknown error occurred."); 191 //Ignore unknown errors, they are not going to help.
192 return;
190 } 193 }
191 Fabric::Fabric{}.postMessage("errorNotification", message); 194 Fabric::Fabric{}.postMessage("errorNotification", message);
192 } else if (notification.type == Sink::Notification::Info) { 195 } else if (notification.type == Sink::Notification::Info) {