sw...@lyx.org wrote: > Author: switt > Date: Sat Oct 30 22:05:55 2010 > New Revision: 35937 > URL: http://www.lyx.org/trac/changeset/35937 > > Log: > after successfuly load of autosave or emergency file the VCS state has to be > checked for the original name
i find disseminating of file_found_hook in various places of buffer routines bad idea. it used to be in one place and would be cool if it remains so. Stephan could you please have look whether its possible to push it at one place in the load hierarchy? pavel > > Modified: > lyx-devel/trunk/src/Buffer.cpp > > Modified: lyx-devel/trunk/src/Buffer.cpp > ============================================================================== > --- lyx-devel/trunk/src/Buffer.cpp Sat Oct 30 21:19:22 2010 (r35936) > +++ lyx-devel/trunk/src/Buffer.cpp Sat Oct 30 22:05:55 2010 (r35937) > @@ -3650,6 +3650,7 @@ > 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 @@ > // 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;