mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
70ed1095ec
commit
4b7ad8b864
@ -2261,6 +2261,11 @@ bool GuiView::renameBuffer(Buffer & b, docstring const & newname)
|
|||||||
return false;
|
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.
|
// the file has now been saved to the new location.
|
||||||
// we need to check that the locations of child buffers
|
// we need to check that the locations of child buffers
|
||||||
// are still valid.
|
// are still valid.
|
||||||
@ -2280,10 +2285,6 @@ bool GuiView::saveBuffer(Buffer & b)
|
|||||||
|
|
||||||
if (b.save()) {
|
if (b.save()) {
|
||||||
theSession().lastFiles().add(b.fileName());
|
theSession().lastFiles().add(b.fileName());
|
||||||
// validate version control data and
|
|
||||||
// correct buffer title
|
|
||||||
b.lyxvc().file_found_hook(b.fileName());
|
|
||||||
b.updateTitles();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user