mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
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:
parent
5f3ef27629
commit
5e3d6fe9d5
@ -702,7 +702,7 @@ bool LyXFunc::ensureBufferClean(BufferView * bv)
|
||||
int const ret = Alert::prompt(title, text, 0, 1, _("&Save"), _("&Cancel"));
|
||||
|
||||
if (ret == 0)
|
||||
dispatch(FuncRequest(LFUN_BUFFER_WRITE));
|
||||
lyx_view_->dispatch(FuncRequest(LFUN_BUFFER_WRITE));
|
||||
|
||||
return buf.isClean() && !buf.isUnnamed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user