mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Move some code to applyView().
Previous commit did not distinguish whether the changes were applied or cancelled. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40487 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
59e0cb8f85
commit
35fa802830
@ -1990,8 +1990,7 @@ void GuiDocument::languagePackageChanged(int i)
|
||||
|
||||
void GuiDocument::biblioChanged()
|
||||
{
|
||||
buffer().invalidateBibinfoCache();
|
||||
buffer().removeBiblioTempFiles();
|
||||
biblioChanged_ = true;
|
||||
changed();
|
||||
}
|
||||
|
||||
@ -2264,6 +2263,11 @@ void GuiDocument::applyView()
|
||||
else
|
||||
bp_.bibtex_command = bibtex_command + " " + bibtex_options;
|
||||
|
||||
if (biblioChanged_) {
|
||||
buffer().invalidateBibinfoCache();
|
||||
buffer().removeBiblioTempFiles();
|
||||
}
|
||||
|
||||
// Indices
|
||||
indicesModule->apply(bp_);
|
||||
|
||||
|
@ -249,6 +249,8 @@ private:
|
||||
std::map<docstring, docstring> changedBranches_;
|
||||
///
|
||||
std::list<std::string> includeonlys_;
|
||||
///
|
||||
bool biblioChanged_;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user