When more windows are opened ensureBufferClean tries to save different document.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28256 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-01-20 14:46:18 +00:00
parent 5f3ef27629
commit 5e3d6fe9d5

View File

@ -702,7 +702,7 @@ bool LyXFunc::ensureBufferClean(BufferView * bv)
int const ret = Alert::prompt(title, text, 0, 1, _("&Save"), _("&Cancel")); int const ret = Alert::prompt(title, text, 0, 1, _("&Save"), _("&Cancel"));
if (ret == 0) if (ret == 0)
dispatch(FuncRequest(LFUN_BUFFER_WRITE)); lyx_view_->dispatch(FuncRequest(LFUN_BUFFER_WRITE));
return buf.isClean() && !buf.isUnnamed(); return buf.isClean() && !buf.isUnnamed();
} }