diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-04-04 21:23:50 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-04-04 21:24:57 +0200 |
commit | 4214ff23ad8f7247c8da8cddbf78bd75e98f17eb (patch) | |
tree | 03e3aed274c0c605cf2d6ea6a0628c3dae8aef50 /framework/source/layoutmanager | |
parent | 622509e47d778bd5e56f620266d5725daf02a90d (diff) |
fdo#37758: Really set the toolbar as hidden.
Change-Id: If0cdf2fabb680f8dee811411f601b2954d29da58
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index cd6c484cd8dc..dd14cec2a070 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -676,7 +676,16 @@ void ToolbarLayoutManager::setVisible( bool bVisible ) { bool bSetVisible( pIter->m_bVisible & bVisible ); if ( !bSetVisible ) + { pWindow->Hide(); + + UIElement aUIElement( *pIter ); + if ( !aUIElement.m_bFloating ) + implts_setLayoutDirty(); + + aUIElement.m_bVisible = false; + implts_setToolbar( aUIElement ); + } else { if ( pIter->m_bFloating ) |