From 98a7516921d6f89d66a27f3de4cd9345dd3ca8a7 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 29 Aug 2007 15:31:22 +0000 Subject: [PATCH] Fix bug 4170: Close window when user wants it closed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19890 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferList.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/BufferList.cpp b/src/BufferList.cpp index ea174c05d3..cbb7f0a456 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -226,14 +226,10 @@ bool BufferList::close(Buffer * buf, bool const ask) return false; } else if (!menuWrite(buf)) return false; - else - return false; } else if (ret == 2) return false; - - if (buf->isUnnamed()) { - removeAutosaveFile(buf->fileName()); - } + + removeAutosaveFile(buf->fileName()); release(buf); return true;