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:
Stephan Witt 2010-10-23 18:35:13 +00:00
parent d0feccc7ed
commit b2137a65de
2 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,7 @@ bool LyXVC::file_found_hook(FileName const & fn)
}
// file is not under any VCS.
vcs.reset(0);
return false;
}

View File

@ -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;
}