diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 40d4b67603b0..1e70bd693330 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -3346,6 +3346,14 @@ void SfxViewFrame::AppendInfoBar( const OUString& sId, const OUString& sMessage, pInfoBars->appendInfoBar( sId, sMessage, aButtons ); ShowChildWindow( nId ); } + else + { + SAL_WARN( "sfx.view", "No consumer for InfoBar buttons, so deleting them instead" ); + for (std::vector< PushButton* >::iterator it = aButtons.begin(); it != aButtons.end(); ++it) + { + delete *it; + } + } } void SfxViewFrame::RemoveInfoBar( const OUString& sId ) |