summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-06-19 23:58:53 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-06-20 00:02:57 +0300
commit1771e2b2753af2c078b575c44e788ee70500bbca (patch)
tree47a7a54d9b183ea7d75f0f3e2b0fa9b221ee243b
parent8f375cc11feb9c903b5507e807062a24c63a11ef (diff)
Try to fix the crashreport with SaveToolbarController::modified
No idea how one managed to trigger this. The only way I see is to add the save button to one of the custom shapes dropdowns. The ToolBox there has mpData->mbWillUsePopupMode set to true, which causes ToolBarManager to call the update method of the controller twice. update registers additional modify listener each time, but there is only one "remove listener" call in dispose. Change-Id: I2a1d6e02f6d8b6bc847fb7694fffa6e85b1f5604
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 5d7b6d8f91ca..fa088a256cb9 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -329,9 +329,6 @@ public:
// XInitialization
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw ( css::uno::Exception, css::uno::RuntimeException, std::exception ) override;
- // XUpdatable
- virtual void SAL_CALL update() throw ( css::uno::RuntimeException, std::exception ) override;
-
// XSubToolbarController
// Ugly HACK to cause ToolBarManager ask our controller for updated image, in case of icon theme change.
virtual sal_Bool SAL_CALL opensSubToolbar() throw ( css::uno::RuntimeException, std::exception ) override;
@@ -393,12 +390,6 @@ void SaveToolbarController::initialize( const css::uno::Sequence< css::uno::Any
else
// Simple save button, without the dropdown.
pToolBox->SetItemBits( nId, pToolBox->GetItemBits( nId ) & ~ ToolBoxItemBits::DROPDOWN );
-}
-
-void SaveToolbarController::update()
- throw ( css::uno::RuntimeException, std::exception )
-{
- PopupMenuToolbarController::update();
if ( m_xModifiable.is() )
{