after successfuly load of autosave or emergency file the VCS state has to be checked for the original name

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35937 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-10-30 20:05:55 +00:00
parent e9335b67a2
commit 4b57639ad0

View File

@ -3650,6 +3650,7 @@ Buffer::ReadStatus Buffer::loadEmergency(FileName const & fn)
bool const success = (ret_llf == ReadSuccess);
if (success) {
markDirty();
lyxvc().file_found_hook(fn);
str = _("Document was successfully recovered.");
} else
str = _("Document was NOT successfully recovered.");
@ -3705,6 +3706,7 @@ Buffer::ReadStatus Buffer::loadAutosave(FileName const & fn)
// the file is not saved if we load the autosave file.
if (ret_llf == ReadSuccess) {
markDirty();
lyxvc().file_found_hook(fn);
return ReadSuccess;
}
return ReadAutosaveFailure;