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
This commit is contained in:
Richard Heck 2007-08-29 15:31:22 +00:00
parent 0471fe4eea
commit 98a7516921

View File

@ -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;