diff options
-rw-r--r-- | framework/notifications/notificationhandler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/notifications/notificationhandler.cpp b/framework/notifications/notificationhandler.cpp index 591ecdab..093d638a 100644 --- a/framework/notifications/notificationhandler.cpp +++ b/framework/notifications/notificationhandler.cpp | |||
@@ -57,6 +57,13 @@ void NotificationHandler::notify(const Sink::Notification ¬ification) | |||
57 | } else { | 57 | } else { |
58 | return; | 58 | return; |
59 | } | 59 | } |
60 | } else if (notification.type == Sink::Notification::Error) { | ||
61 | if (notification.code == Sink::ApplicationDomain::ConnectionError) { | ||
62 | n.mType = Notification::Warning; | ||
63 | n.mMessage = "Failed to connect to server."; | ||
64 | } else { | ||
65 | return; | ||
66 | } | ||
60 | } else if (notification.type == Sink::Notification::Info) { | 67 | } else if (notification.type == Sink::Notification::Info) { |
61 | n.mType = Notification::Info; | 68 | n.mType = Notification::Info; |
62 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { | 69 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { |