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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40008 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 33b79b274a3aa1f9ff70e35991280d3fb89bf86a..8204fe1aeaca2c1697c09fc5eca9af87c0b9e217 100644 (file)
@@ -356,6 +356,7 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_,
        bibfile_cache_valid_ = cloned_buffer_->d->bibfile_cache_valid_;
        bibfile_status_ = cloned_buffer_->d->bibfile_status_;
        cite_labels_valid_ = cloned_buffer_->d->cite_labels_valid_;
+       unnamed = cloned_buffer_->d->unnamed;
 }