From 5ccea065247dffe1c29923619b39d63b2e1c5911 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Sun, 19 Feb 2017 15:15:54 +0200 Subject: VclStatusListener: Listener needs to be acquire'd first because as soon as we're wrapped somewhere with a temp. uno/rtl::Reference, its destruction will lead to our own destruction while we're still in ctor. Typical situation is when the broadcaster rejects our listening request. Change-Id: I7fd282e53095ab9939f803df9564c9767263b1f8 --- vcl/source/window/toolbox.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/source/window') diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index dfee6f2a5265..549074890b50 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1401,6 +1401,7 @@ void ToolBox::ImplInitToolBoxData() mnActivateCount = 0; mnImagesRotationAngle = 0; mpStatusListener = new VclStatusListener(this, ".uno:ImageOrientation"); + mpStatusListener->startListening(); mpIdle = new Idle("vcl::ToolBox maIdle update"); mpIdle->SetPriority( TaskPriority::RESIZE ); -- cgit