branch: Fix bug #7793: LyX leaves behind autosave files

The LyX buffer is cloned before autosaving, but the unnamed_ member was not
copied. This causes the autosave files to end up in the wrong location and
consequently they were never removed afterwards.

see r40008.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40018 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2011-10-26 19:50:33 +00:00
parent af227ddd8b
commit 84e3817673
2 changed files with 4 additions and 0 deletions

View File

@ -347,6 +347,7 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_,
bibinfo_cache_valid_ = cloned_buffer_->d->bibinfo_cache_valid_;
bibfile_cache_valid_ = cloned_buffer_->d->bibfile_cache_valid_;
bibfile_status_ = cloned_buffer_->d->bibfile_status_;
unnamed = cloned_buffer_->d->unnamed;
}

View File

@ -126,6 +126,9 @@ What's new
- Fix tex2lyx handling of recognized Roman fonts (bug 7856).
- Store the autosave files of unnamed buffers in the correct directory
and make sure they are not left behind after saving (bug 7793).
* USER INTERFACE