From b7c3764ae8dbad83ba427b7b15051f99474cabc3 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 13 Aug 2018 00:44:52 +0200 Subject: [PATCH] NotificationDisplay: wire NotificationHub-Controller with the global ID --- src/gui/ctrl/notification-hub.hpp | 5 ++--- src/gui/interact/wizard.cpp | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/ctrl/notification-hub.hpp b/src/gui/ctrl/notification-hub.hpp index 1e447cc6f..1aa58a043 100644 --- a/src/gui/ctrl/notification-hub.hpp +++ b/src/gui/ctrl/notification-hub.hpp @@ -76,13 +76,12 @@ namespace ctrl { UNIMPLEMENTED ("create a sensible binding between AssetManager in the session and AssetController in the UI"); } - public: public: - NotificationHub (ID identity, ctrl::BusTerm& nexus)////////////////////////////////////TODO #1099 : define the ID hard-wired at an appropriate location, so it can be used from the NotificationService impl as well + NotificationHub (ID identity, ctrl::BusTerm& nexus) : model::Controller{identity, nexus} { } - + ~NotificationHub() { }; private: diff --git a/src/gui/interact/wizard.cpp b/src/gui/interact/wizard.cpp index 7996eb744..49921c692 100644 --- a/src/gui/interact/wizard.cpp +++ b/src/gui/interact/wizard.cpp @@ -56,6 +56,7 @@ namespace interact { using boost::algorithm::is_any_of; using boost::algorithm::split; using workspace::WorkspaceWindow; + using ctrl::NotificationHub; using ctrl::GlobalCtx; using Gtk::AboutDialog; @@ -67,6 +68,7 @@ namespace interact { Wizard::Wizard (GlobalCtx& globals) : globalCtx_{globals} + , notificationHub_{new NotificationHub{getErrorLogID(), globals.uiBus_.getAccessPoint()}} { }