From: Jürgen Spitzmüller Date: Mon, 28 Apr 2008 16:25:54 +0000 (+0000) Subject: * Menus.cpp: X-Git-Tag: 1.6.10~4962 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4f81d0eff74823c9600eb2312b44841c9a0decdb;p=features.git * Menus.cpp: - make it work with multiple keys. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24539 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index e9b3795f02..698fd05f84 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -1091,6 +1091,9 @@ void MenuDefinition::expandCiteStyles(BufferView const * bv) Buffer const * buf = &bv->buffer(); docstring key = citinset->getParam("key"); + // we can only handle one key currently + if (contains(key, ',')) + key = qstring_to_ucs4(toqstr(key).split(',')[0]); vector citeStyleList = citeStyles(buf->params().citeEngine()); vector citeStrings =