[Libreoffice-commits] core.git: framework/source

akash akash96j at gmail.com
Tue Apr 5 12:51:36 UTC 2016


 framework/source/fwe/helper/titlehelper.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d0075ad8f2e38e23d578f80928236b3a2780f25b
Author: akash <akash96j at gmail.com>
Date:   Fri Apr 1 18:11:04 2016 +0530

    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 at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx
index 9441e5c..52cb419 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);
 }


More information about the Libreoffice-commits mailing list