From 8a78d09844826948647aa5ecc46449413ce09502 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 25 Oct 2017 14:39:44 +0200 Subject: Use a loader so we can load different components depending on the error --- framework/qml/Notifications.qml | 2 ++ framework/src/sinkfabric.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'framework') diff --git a/framework/qml/Notifications.qml b/framework/qml/Notifications.qml index df1190d3..7dd57dfa 100644 --- a/framework/qml/Notifications.qml +++ b/framework/qml/Notifications.qml @@ -24,5 +24,7 @@ Item { property string error: "error" property string info: "info" property string progress: "progress" + + property string loginError: "loginError" } diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index cdaa9a90..cb72c120 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp @@ -172,6 +172,7 @@ public: break; case Sink::ApplicationDomain::LoginError: message["message"] = QObject::tr("Failed to login."); + message["subtype"] = "loginError"; break; case Sink::ApplicationDomain::ConfigurationError: message["message"] = QObject::tr("Configuration error."); -- cgit v1.2.3