]> git.lyx.org Git - features.git/commitdiff
If we are in a closeEvent, we don't want to close all buffers, because these may...
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 20:41:29 +0000 (20:41 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 20:41:29 +0000 (20:41 +0000)
For now, I stick to the convention that closing a buffer, will close it in all tabworkareas and all views. Therefore, when choosing File->Close All, we still close all buffers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31126 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 36739dbc797abc3c13204543e25ce18896d966a5..8986f7dfbccd4b8a6e958403977c6c5f64c30ec8 100644 (file)
@@ -547,7 +547,7 @@ void GuiView::closeEvent(QCloseEvent * close_event)
        // it can happen that this event arrives without selecting the view,
        // e.g. when clicking the close button on a background window.
        setFocus();
-       if (!closeBufferAll(true)) {
+       if (!closeWorkAreaAll(true)) {
                closing_ = false;
                close_event->ignore();
                return;