mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Keep citation style settings bot within and between sessions.
Fixes: #10256
This commit is contained in:
parent
d3d6c6e978
commit
3294b16bf6
@ -307,7 +307,8 @@ void GuiCitation::updateStyles(BiblioInfo const & bi)
|
||||
citationStyleCO->blockSignals(true);
|
||||
|
||||
// save old index
|
||||
int const oldIndex = citationStyleCO->currentIndex();
|
||||
int const curindex = citationStyleCO->currentIndex();
|
||||
int const oldIndex = (curindex < 0) ? style_ : curindex;
|
||||
citationStyleCO->clear();
|
||||
citationStyleCO->insertItems(0, sty);
|
||||
citationStyleCO->setEnabled(true);
|
||||
@ -822,6 +823,8 @@ void GuiCitation::saveSession() const
|
||||
sessionKey() + "/casesensitive", casesense_->isChecked());
|
||||
settings.setValue(
|
||||
sessionKey() + "/autofind", instant_->isChecked());
|
||||
settings.setValue(
|
||||
sessionKey() + "/citestyle", style_);
|
||||
}
|
||||
|
||||
|
||||
@ -832,6 +835,7 @@ void GuiCitation::restoreSession()
|
||||
regexp_->setChecked(settings.value(sessionKey() + "/regex").toBool());
|
||||
casesense_->setChecked(settings.value(sessionKey() + "/casesensitive").toBool());
|
||||
instant_->setChecked(settings.value(sessionKey() + "/autofind").toBool());
|
||||
style_ = settings.value(sessionKey() + "/citestyle").toInt();
|
||||
updateFilterHint();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user