From 11ecc24c0c0f96d5bedb0db9fa8d9718673e440a Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 3 May 2009 10:16:49 +0000 Subject: [PATCH] Revert r29505. We forgot that we cannot retrieve the new autosavefile yet, because the buffer might still be marked as unnamed. So, we should first finish this administration, before we can get the location of the new autosave filename. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29506 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 1084bc1014..cdc45a6dde 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -491,17 +491,9 @@ void Buffer::setReadonly(bool const flag) void Buffer::setFileName(string const & newfile) { - // bring the autosave file with us, just in case. - FileName const oldauto = getAutosaveFilename(); d->filename = makeAbsPath(newfile); setReadonly(d->filename.isReadOnly()); updateTitles(); - FileName const newauto = getAutosaveFilename(); - if (oldauto == newauto) - return; - if (oldauto.moveTo(newauto)) - return; - LYXERR0("Unable to remove autosave file `" << oldauto << "'!"); }