summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2009-11-20 09:22:11 +0000
committerCarsten Driesner <cd@openoffice.org>2009-11-20 09:22:11 +0000
commitee56b6b0862f2c3d92cb535542c124db739819cf (patch)
tree8f232d0a9222df2165f8748cb3fd6e808c31b1d6 /framework/source
parent65d3cfbba40c92044cc3575149dde863a8529e9a (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.cxx4
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 );