]> git.lyx.org Git - features.git/commitdiff
branch: Fix bug #7793: LyX leaves behind autosave files
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Oct 2011 19:50:33 +0000 (19:50 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Oct 2011 19:50:33 +0000 (19:50 +0000)
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

src/Buffer.cpp
status.20x

index 86a1d03650c889ba0e64fa53c87ff238c40fa620..79b8ebd1efe3283c12dd24e9b125afdf529e7540 100644 (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;
 }
 
 
index 347c86ed373eaed4f3f164b8e5f6a56aba38fbd5..434b75e21ee9d9b1c655b3683c99e1d41af79c4a 100644 (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