Revert "Fix display of bindings for View-other-formats dynamic toolbar menu"

This reverts commit e2e7794c7e.
This commit is contained in:
Jean-Marc Lasgouttes 2022-07-19 13:36:12 +02:00
parent e2e7794c7e
commit 23a27e90ba

View File

@ -149,10 +149,10 @@ Action * GuiToolbar::addItem(ToolbarItem const & item)
// first one later
KeyMap::Bindings bindings = theTopLevelKeymap().findBindings(*item.func);
if (!bindings.empty())
text += '\t' + toqstr(bindings.begin()->print(KeySequence::ForGui));
text += " [" + toqstr(bindings.begin()->print(KeySequence::ForGui)) + "]";
Action * act = new Action(item.func, getIcon(*item.func, false), text,
QString(), this);
text, this);
if (item.type == ToolbarItem::BIDICOMMAND)
act->setRtlIcon(getIcon(*item.func, false, true));