validate version control status after buffer save-as, avoid that for saveBuffer()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-10-24 17:14:10 +00:00
parent 70ed1095ec
commit 4b7ad8b864

View File

@ -2261,6 +2261,11 @@ bool GuiView::renameBuffer(Buffer & b, docstring const & newname)
return false;
}
// validate version control data and
// correct buffer title
b.lyxvc().file_found_hook(b.fileName());
b.updateTitles();
// the file has now been saved to the new location.
// we need to check that the locations of child buffers
// are still valid.
@ -2280,10 +2285,6 @@ 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;
}