From dc5934737d63035227a3dc899b784f2de4bacd6e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 2 Nov 2010 20:38:42 +0000 Subject: [PATCH] Improve display of index names under Insert>Lists/TOC. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36006 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/Menus.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index bdf75caade..4137f33f46 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -1358,16 +1358,16 @@ void MenuDefinition::expandIndices(Buffer const * buf, bool listof) IndicesList::const_iterator end = params.indiceslist().end(); for (int ii = 1; cit != end; ++cit, ++ii) { - if (listof) - addWithStatusCheck(MenuItem(MenuItem::Command, toqstr(cit->index()), - FuncRequest(LFUN_INDEX_PRINT, - cit->shortcut()))); - else { - docstring label = _("Index Entry"); - label += " (" + cit->index() + ")"; + if (listof) { + docstring const label = + bformat(_("Index: %1$s"), cit->index()); addWithStatusCheck(MenuItem(MenuItem::Command, toqstr(label), - FuncRequest(LFUN_INDEX_INSERT, - cit->shortcut()))); + FuncRequest(LFUN_INDEX_PRINT, cit->shortcut()))); + } else { + docstring const label = + bformat(_("Index Entry (%1$s)"), cit->index()); + addWithStatusCheck(MenuItem(MenuItem::Command, toqstr(label), + FuncRequest(LFUN_INDEX_INSERT, cit->shortcut()))); } } } -- 2.39.2