mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
e9335b67a2
commit
4b57639ad0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user