summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-09 02:02:58 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-09 02:02:58 +0100
commitbcf5e29a5e30a09d73efd987a8ba41fa96aaee3b (patch)
treecf61d5855cb1062e0aadd15ee4219409ee782304
parent008bf57d7e80a7859881afd38179dc6be3be8116 (diff)
HudController: disconnect to UScreen changes on Controller destruction
Fixes LP: #1748330 (bzr r4265.1.1)
-rw-r--r--hud/HudController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hud/HudController.cpp b/hud/HudController.cpp
index f88e8120f..ab941e88a 100644
--- a/hud/HudController.cpp
+++ b/hud/HudController.cpp
@@ -83,7 +83,7 @@ Controller::Controller(Controller::ViewCreator const& create_view,
}
SetupWindow();
- UScreen::GetDefault()->changed.connect([this] (int, std::vector<nux::Geometry> const&) { Relayout(true); });
+ UScreen::GetDefault()->changed.connect(sigc::track_obj([this] (int, std::vector<nux::Geometry> const&) { Relayout(true); }, *this));
ubus.RegisterInterest(UBUS_HUD_CLOSE_REQUEST, sigc::mem_fun(this, &Controller::OnExternalHideHud));