mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
validate version control status after buffer save or save-as
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d0feccc7ed
commit
b2137a65de
@ -68,6 +68,7 @@ bool LyXVC::file_found_hook(FileName const & fn)
|
||||
}
|
||||
|
||||
// file is not under any VCS.
|
||||
vcs.reset(0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2280,6 +2280,10 @@ bool GuiView::saveBuffer(Buffer & b)
|
||||
|
||||
if (b.save()) {
|
||||
theSession().lastFiles().add(b.fileName());
|
||||
// validate version control data and
|
||||
// correct buffer title
|
||||
b.lyxvc().file_found_hook(b.fileName());
|
||||
b.updateTitles();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user