summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-07-16 16:56:28 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-07-16 23:42:25 +0300
commitde48b8af6ddf272bf37be1574630986a302fd5c8 (patch)
tree169c110e7fab566199e4cddef84b7123e7a41a6e /framework
parentb1d4af61c68be8dcda6fa97aa6cef97e77d77c23 (diff)
Ignore string status updates completely
See no benefit of it here, and also it has some unexpected results with some commands that have enum commands, and use a string item to update the currently selected item. Change-Id: Iae54c4e1fb7a3aa5a7c1a03904fb3629ed63c8f0
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/subtoolbarcontroller.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx
index 3a1676028cac..63a0984cafd0 100644
--- a/framework/source/uielement/subtoolbarcontroller.cxx
+++ b/framework/source/uielement/subtoolbarcontroller.cxx
@@ -137,7 +137,6 @@ void SubToolBarController::statusChanged( const css::frame::FeatureStateEvent& E
TriState eTri = TRISTATE_FALSE;
bool bValue;
- OUString aStrValue;
css::frame::status::ItemStatus aItemState;
css::frame::status::Visibility aItemVisibility;
@@ -150,10 +149,6 @@ void SubToolBarController::statusChanged( const css::frame::FeatureStateEvent& E
eTri = TRISTATE_TRUE;
nItemBits |= ToolBoxItemBits::CHECKABLE;
}
- else if ( Event.State >>= aStrValue )
- {
- pToolBox->SetItemText( nId, aStrValue );
- }
else if ( Event.State >>= aItemState )
{
eTri = TRISTATE_INDET;