diff options
author | Carsten Driesner <cd@openoffice.org> | 2009-11-20 09:22:11 +0000 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2009-11-20 09:22:11 +0000 |
commit | ee56b6b0862f2c3d92cb535542c124db739819cf (patch) | |
tree | 8f232d0a9222df2165f8748cb3fd6e808c31b1d6 /framework/source | |
parent | 65d3cfbba40c92044cc3575149dde863a8529e9a (diff) |
#i107003# Make toolbar invisible before calling doLazyDelete. This prevents possible crashes in scenarios where a modal dialog is visible.
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 55c8d16af2ec..294ab6ef3b74 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -341,9 +341,11 @@ void ToolBarManager::Destroy() delete static_cast< AddonsParams* >( m_pToolBar->GetItemData( nItemId )); } + // Hide toolbar as lazy delete can destroy the toolbar much later. + m_pToolBar->Hide(); /* #i99167# removed change for i93173 since there is some weird crash */ // #i93173# delete toolbar lazily as we can still be in one of its handlers - m_pToolBar->doLazyDelete(); + m_pToolBar->doLazyDelete(); Link aEmpty; m_pToolBar->SetSelectHdl( aEmpty ); |