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:
Julien Rioux 2011-12-12 16:38:04 +00:00
parent 59e0cb8f85
commit 35fa802830
2 changed files with 8 additions and 2 deletions

View File

@ -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_);

View File

@ -249,6 +249,8 @@ private:
std::map<docstring, docstring> changedBranches_;
///
std::list<std::string> includeonlys_;
///
bool biblioChanged_;
};