diff options
author | Noel Power <noel.power@novell.com> | 2011-05-11 13:51:03 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-05-11 13:53:24 +0100 |
commit | 17e8ee1d7b9b4464af73657679df7b0bbdffa028 (patch) | |
tree | f6c403bb103f3364f2b1a787505731ad9db42ec8 | |
parent | 5775487357d3bfd0e308df91da2b598dfee3ce74 (diff) |
fix for fdo#37103
reset toolbar command handler when toolbarmanager is destroyed
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index dcbecf06b7..8a0578fd0f 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -314,6 +314,7 @@ ToolBarManager::~ToolBarManager() void ToolBarManager::Destroy() { + OSL_ASSERT( m_pToolBar != 0 ); ResetableGuard aGuard( m_aLock ); if ( m_bAddedToTaskPaneList ) { @@ -349,6 +350,7 @@ void ToolBarManager::Destroy() m_pToolBar->SetDoubleClickHdl( aEmpty ); m_pToolBar->SetStateChangedHdl( aEmpty ); m_pToolBar->SetDataChangedHdl( aEmpty ); + m_pToolBar->SetCommandHdl( aEmpty ); m_pToolBar = 0; } |