From 4b57639ad01a07d23878dc2d0e683bf94e24d6a7 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sat, 30 Oct 2010 20:05:55 +0000 Subject: [PATCH] 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 --- src/Buffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5bd73da715..a24e9e55bc 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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;