summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2022-07-21 23:56:42 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2022-08-10 08:28:18 +0200
commitc76857fe4e725834e6be9bd5b3273df95bf7fafd (patch)
tree42ea625d90263c62e0a00cc1935ca8466853cf08 /vcl/source/app
parent085abe2b7187f2cfd69a5a1c6e84ef0c9c214f78 (diff)
Make ToolBox::InsertItem take the command name
For the next patch for tdf#149956 I need the command to be already set when the VclEventId::ToolboxItemAdded event is emitted. Change-Id: I3d8ce44b426a3ed5704d4520d6e62bc4efbf8e44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138038 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 673c2ea4dbec..39713700bd20 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1111,8 +1111,7 @@ void SalInstanceToolbar::set_item_menu(const OString& rIdent, weld::Menu* pMenu)
void SalInstanceToolbar::insert_item(int pos, const OUString& rId)
{
ToolBoxItemId nId(pos);
- m_xToolBox->InsertItem(nId, rId, ToolBoxItemBits::ICON_ONLY);
- m_xToolBox->SetItemCommand(nId, rId);
+ m_xToolBox->InsertItem(nId, OUString(), rId, ToolBoxItemBits::ICON_ONLY);
}
void SalInstanceToolbar::insert_separator(int pos, const OUString& /*rId*/)