Fix bug 4170: Close window when user wants it closed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19889 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-08-29 15:24:41 +00:00
parent f6e94c8b24
commit 58d97d01d8

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;