mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +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()
|
void GuiDocument::biblioChanged()
|
||||||
{
|
{
|
||||||
buffer().invalidateBibinfoCache();
|
biblioChanged_ = true;
|
||||||
buffer().removeBiblioTempFiles();
|
|
||||||
changed();
|
changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2264,6 +2263,11 @@ void GuiDocument::applyView()
|
|||||||
else
|
else
|
||||||
bp_.bibtex_command = bibtex_command + " " + bibtex_options;
|
bp_.bibtex_command = bibtex_command + " " + bibtex_options;
|
||||||
|
|
||||||
|
if (biblioChanged_) {
|
||||||
|
buffer().invalidateBibinfoCache();
|
||||||
|
buffer().removeBiblioTempFiles();
|
||||||
|
}
|
||||||
|
|
||||||
// Indices
|
// Indices
|
||||||
indicesModule->apply(bp_);
|
indicesModule->apply(bp_);
|
||||||
|
|
||||||
|
@ -249,6 +249,8 @@ private:
|
|||||||
std::map<docstring, docstring> changedBranches_;
|
std::map<docstring, docstring> changedBranches_;
|
||||||
///
|
///
|
||||||
std::list<std::string> includeonlys_;
|
std::list<std::string> includeonlys_;
|
||||||
|
///
|
||||||
|
bool biblioChanged_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user