From 4f81d0eff74823c9600eb2312b44841c9a0decdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 28 Apr 2008 16:25:54 +0000 Subject: [PATCH] * 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 --- src/frontends/qt4/Menus.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 =