diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx index 3a06a104ec2e..755b43b400f3 100644 --- a/framework/source/uielement/subtoolbarcontroller.cxx +++ b/framework/source/uielement/subtoolbarcontroller.cxx @@ -260,7 +260,7 @@ css::uno::Reference< css::awt::XWindow > SubToolBarController::createPopupWindow sal_Bool SubToolBarController::opensSubToolbar() throw ( css::uno::RuntimeException, std::exception ) { - return sal_True; + return !m_aLastCommand.isEmpty(); } OUString SubToolBarController::getSubToolbarName()