summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-02-19 15:15:54 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-02-21 01:40:29 +0200
commit5ccea065247dffe1c29923619b39d63b2e1c5911 (patch)
tree886bb47564ffcc1c2d8780c4dd26828e01f10add /vcl/source/window
parentb6994cb75fb7e34574d933dff58fcec3bb1ab922 (diff)
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
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/toolbox.cxx1
1 files changed, 1 insertions, 0 deletions
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<ToolBox>(this, ".uno:ImageOrientation");
+ mpStatusListener->startListening();
mpIdle = new Idle("vcl::ToolBox maIdle update");
mpIdle->SetPriority( TaskPriority::RESIZE );