From 84e38176736c6d1b2768c14b01eb5bf2146b4587 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 26 Oct 2011 19:50:33 +0000 Subject: [PATCH] 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 --- src/Buffer.cpp | 1 + status.20x | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 86a1d03650..79b8ebd1ef 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; } diff --git a/status.20x b/status.20x index 347c86ed37..434b75e21e 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5