summaryrefslogtreecommitdiff
path: root/framework/source/uielement/popuptoolbarcontroller.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-12-28 22:51:23 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-12-29 00:19:00 +0200
commite413549dc8b5669a806eeabc30c7d6f92723a882 (patch)
tree78888477903e486363b4b9e23bfcabce3bbf19df /framework/source/uielement/popuptoolbarcontroller.cxx
parent6fc42d053d2e3aedecc3d18e1cdaf1fa3c3da6b3 (diff)
PopupMenuToolbarController: Update the menu before opening
Just like we do for the menubar, we must tell the popup menu controller to update itself. Change-Id: Ib914b22b909f9e5c1c4ebc8af58496d73e867416
Diffstat (limited to 'framework/source/uielement/popuptoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 43b68821cd15..c076652bd11d 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -220,7 +220,11 @@ void PopupMenuToolbarController::createPopupMenuController()
if( !m_bHasController )
return;
- if ( !m_xPopupMenuController.is() )
+ if ( m_xPopupMenuController.is() )
+ {
+ m_xPopupMenuController->updatePopupMenu();
+ }
+ else
{
css::uno::Sequence< css::uno::Any > aArgs( 3 );
aArgs[0] <<= comphelper::makePropertyValue( "Frame", m_xFrame );