Skip to content
Snippets Groups Projects
Commit 65588da9 authored by Raul Radu's avatar Raul Radu
Browse files

[Window] Window is using the new MessageBroker

parent 6ad53765
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,6 @@ Window::Window(XmlObject configuration) ...@@ -36,11 +36,6 @@ Window::Window(XmlObject configuration)
} }
} }
Window::~Window()
{
MessageBroker::getInstance().unsubscribeFromAll(activeModule);
}
void Window::setChild(std::shared_ptr<Module> module) void Window::setChild(std::shared_ptr<Module> module)
{ {
Module *rawModule = module.get(); Module *rawModule = module.get();
...@@ -55,7 +50,6 @@ void Window::replaceChild(Module *_oldModule, std::shared_ptr<Module> newModule) ...@@ -55,7 +50,6 @@ void Window::replaceChild(Module *_oldModule, std::shared_ptr<Module> newModule)
{ {
std::shared_ptr<Module> oldModule = this->activeModule; std::shared_ptr<Module> oldModule = this->activeModule;
setChild(newModule); setChild(newModule);
MessageBroker::getInstance().unsubscribeFromAll(oldModule);
} }
void Window::closeChild(Module *module) { close(); } void Window::closeChild(Module *module) { close(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment