diff options
author | akash <akash96j@gmail.com> | 2016-04-01 18:11:04 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-05 12:51:14 +0000 |
commit | d0075ad8f2e38e23d578f80928236b3a2780f25b (patch) | |
tree | d16d2630a394285e85cdd53c63d72712a16c54a1 /framework | |
parent | 0bb43aabab4fe772d2be7dfe3cc228473da19c2d (diff) |
tdf#96044 - After exiting print preview main window number bumps to #3
Make TitleHelper listen for controller events.
When the controller disposes, it calls the disposing method and releases its
leased number. Direct cast to XEventListener is ambiguous, so upcasting
path has been defined.
This commit depends on the commit f80de31099be1ba7c6f753187f6703a915151c27
Change-Id: I79d859edf8e66ae6e777ba8e8d6c9d1dac4048e1
Reviewed-on: https://gerrit.libreoffice.org/23722
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index 9441e5c66383..52cb4198b8ad 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -587,6 +587,7 @@ void TitleHelper::impl_startListeningForModel (const css::uno::Reference< css::f void TitleHelper::impl_startListeningForController (const css::uno::Reference< css::frame::XController >& xController) { + xController->addEventListener (static_cast< css::lang::XEventListener* > (static_cast< css::frame::XFrameActionListener* > (this) ) ); css::uno::Reference< css::frame::XTitle > xSubTitle(xController->getModel (), css::uno::UNO_QUERY); impl_setSubTitle (xSubTitle); } |