]> git.lyx.org Git - features.git/commitdiff
Correctly enable/disable citation dialog widgets on initialization.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 5 Feb 2017 14:42:03 +0000 (15:42 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 6 Feb 2017 17:24:51 +0000 (18:24 +0100)
Thanks Guillaume for pointing this out.

src/frontends/qt4/GuiCitation.cpp
status.22x

index 872d3049cc62d7eaeb6283d95bdc09030ef96f25..4c4bcf13f793bd1b427ab3643f56098c0aedfcc0 100644 (file)
@@ -244,6 +244,10 @@ void GuiCitation::updateControls(BiblioInfo const & bi)
 {
        QModelIndex idx = selectionManager->getSelectedIndex();
        updateInfo(bi, idx);
+       int i = citationStyleCO->currentIndex();
+       if (i == -1)
+               i = 0;
+       updateFormatting(citeStyles_[i]);
        selectionManager->update();
 }
 
index 8328b234b656210b67b5fb1b3dc63da8190bd36e..408d7662a8187242e8dbaea86e0fed6b478a5f98 100644 (file)
@@ -196,6 +196,8 @@ What's new
 
 - Fix possible crash with Save As... when online spell-checking is active.
 
+- Correctly enable/disable citation dialog widgets on initialization.
+
 
 * INTERNALS