]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCitation.cpp
Use localized item when calculating the panel stack's tree widget width.
[lyx.git] / src / frontends / qt4 / GuiCitation.cpp
index 826a814cd69b0daae04372916c78b0bc196282b2..28d5dcf63830c0a145b893dadda092bde9b2068a 100644 (file)
@@ -250,6 +250,10 @@ void GuiCitation::updateControls(BiblioInfo const & bi)
 {
        QModelIndex idx = selectionManager->getSelectedIndex(1);
        updateInfo(bi, idx);
+       int i = citationStyleCO->currentIndex();
+       if (i == -1)
+               i = 0;
+       updateFormatting(citeStyles_[i]);
        selectionManager->update();
 }
 
@@ -295,6 +299,7 @@ void GuiCitation::updateFormatting(CitationStyle currentStyle)
        textBeforeLA->setEnabled(textbefore && haveSelection);
        textAfterED->setEnabled(textafter && haveSelection);
        textAfterLA->setEnabled(textafter && haveSelection);
+       literalCB->setEnabled(textbefore || textafter);
        citationStyleCO->setEnabled(haveSelection);
        citationStyleLA->setEnabled(haveSelection);