mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
GuiCitation.cpp: fix #5987
OK also for branch? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30061 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f2d0a94b91
commit
b2f0d517e2
@ -231,8 +231,14 @@ void GuiCitation::updateFormatting(CiteStyle currentStyle)
|
||||
|
||||
bool const isNocite = currentStyle == NOCITE;
|
||||
|
||||
fulllistCB->setEnabled(natbib_engine && haveSelection && !isNocite);
|
||||
forceuppercaseCB->setEnabled(natbib_engine && haveSelection && !isNocite);
|
||||
bool const isCiteyear =
|
||||
currentStyle == CITEYEAR ||
|
||||
currentStyle == CITEYEARPAR;
|
||||
|
||||
fulllistCB->setEnabled(natbib_engine && haveSelection && !isNocite
|
||||
&& !isCiteyear);
|
||||
forceuppercaseCB->setEnabled(natbib_engine && haveSelection
|
||||
&& !isNocite && !isCiteyear);
|
||||
textBeforeED->setEnabled(!basic_engine && haveSelection && !isNocite);
|
||||
textBeforeLA->setEnabled(!basic_engine && haveSelection && !isNocite);
|
||||
textAfterED->setEnabled(haveSelection && !isNocite);
|
||||
|
Loading…
Reference in New Issue
Block a user