Disable literal cb if there is nothing to latexify.

This commit is contained in:
Juergen Spitzmueller 2017-02-05 15:43:01 +01:00
parent 06af852293
commit 517ca4f1cc

View File

@ -299,6 +299,7 @@ void GuiCitation::updateFormatting(CitationStyle currentStyle)
textBeforeLA->setEnabled(textbefore && haveSelection); textBeforeLA->setEnabled(textbefore && haveSelection);
textAfterED->setEnabled(textafter && haveSelection); textAfterED->setEnabled(textafter && haveSelection);
textAfterLA->setEnabled(textafter && haveSelection); textAfterLA->setEnabled(textafter && haveSelection);
literalCB->setEnabled(textbefore || textafter);
citationStyleCO->setEnabled(haveSelection); citationStyleCO->setEnabled(haveSelection);
citationStyleLA->setEnabled(haveSelection); citationStyleLA->setEnabled(haveSelection);