]> git.lyx.org Git - features.git/commitdiff
after successfuly load of autosave or emergency file the VCS state has to be checked...
authorStephan Witt <switt@lyx.org>
Sat, 30 Oct 2010 20:05:55 +0000 (20:05 +0000)
committerStephan Witt <switt@lyx.org>
Sat, 30 Oct 2010 20:05:55 +0000 (20:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35937 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 5bd73da715315da24f5f00effdb0757f195ba092..a24e9e55bc98d98f537a02d3a3c199087aa42c43 100644 (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;