summaryrefslogtreecommitdiffstats
path: root/framework/notifications/notificationhandler.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:32:32 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:58:00 +0100
commit2abc3b59a7485438085de6d36d19e4064a293f0a (patch)
tree5c2a92b811bbb81f735a46a8356482ad2df552fc /framework/notifications/notificationhandler.cpp
parent30eea0017458e619747d01255f668c0853695126 (diff)
downloadkube-2abc3b59a7485438085de6d36d19e4064a293f0a.tar.gz
kube-2abc3b59a7485438085de6d36d19e4064a293f0a.zip
Adapted to sink changes.
Diffstat (limited to 'framework/notifications/notificationhandler.cpp')
-rw-r--r--framework/notifications/notificationhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/notifications/notificationhandler.cpp b/framework/notifications/notificationhandler.cpp
index 7fa392f0..591ecdab 100644
--- a/framework/notifications/notificationhandler.cpp
+++ b/framework/notifications/notificationhandler.cpp
@@ -44,7 +44,7 @@ void NotificationHandler::notify(const Sink::Notification &notification)
44 qWarning() << "Received notification: " << notification; 44 qWarning() << "Received notification: " << notification;
45 if (notification.type == Sink::Notification::Warning) { 45 if (notification.type == Sink::Notification::Warning) {
46 n.mType = Notification::Warning; 46 n.mType = Notification::Warning;
47 if (notification.code == Sink::Notification::TransmissionFailed) { 47 if (notification.code == Sink::ApplicationDomain::TransmissionError) {
48 n.mMessage = "Failed to send message."; 48 n.mMessage = "Failed to send message.";
49 } else { 49 } else {
50 return; 50 return;
@@ -59,7 +59,7 @@ void NotificationHandler::notify(const Sink::Notification &notification)
59 } 59 }
60 } else if (notification.type == Sink::Notification::Info) { 60 } else if (notification.type == Sink::Notification::Info) {
61 n.mType = Notification::Info; 61 n.mType = Notification::Info;
62 if (notification.code == Sink::Notification::TransmissionSucceeded) { 62 if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) {
63 n.mMessage = "A message has been sent."; 63 n.mMessage = "A message has been sent.";
64 } else { 64 } else {
65 return; 65 return;