From: Vincent van Ravesteijn Date: Wed, 26 Oct 2011 13:15:42 +0000 (+0000) Subject: Fix bug #7793: LyX leaves behind autosave files X-Git-Tag: 2.1.0beta1~2476 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=61dda8035dd9e30409822543e13fe60bb2d105ae;p=lyx.git 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. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40008 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 33b79b274a..8204fe1aea 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; }