]> git.lyx.org Git - features.git/commitdiff
When more windows are opened ensureBufferClean tries to save different document.
authorPavel Sanda <sanda@lyx.org>
Tue, 20 Jan 2009 14:46:18 +0000 (14:46 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 20 Jan 2009 14:46:18 +0000 (14:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28256 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 1c541063847deeb8c4fa295f70e488de2a4c7537..40e26f95b5f1896e23591b53fd6b4408cbaf1244 100644 (file)
@@ -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();
 }