Correctly enable/disable citation dialog widgets on initialization.

Thanks Guillaume for pointing this out.
This commit is contained in:
Juergen Spitzmueller 2017-02-05 15:42:03 +01:00
parent 1438123a13
commit 8a0696db29
2 changed files with 6 additions and 0 deletions

View 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();
}

View 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