]> git.lyx.org Git - features.git/commitdiff
Fix bug #5893: LyX closes hidden dirty buffers without asking.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 19:27:19 +0000 (19:27 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 18 Aug 2009 19:27:19 +0000 (19:27 +0000)
Closing a tab group will now hide the buffers, but if buffers are dirty it will first ask you to save it.

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

src/frontends/qt4/GuiView.cpp

index f80ba0d449e45523d04b5540c4202dfd4158ec13..d44065f07c506500c1cf353fcd8754a2af812b84 100644 (file)
@@ -2297,7 +2297,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
 
                case LFUN_CLOSE_TAB_GROUP:
                        if (TabWorkArea * twa = d.currentTabWorkArea()) {
-                               delete twa;
+                               closeTabWorkArea(twa, false);
                                d.current_work_area_ = 0;
                                twa = d.currentTabWorkArea();
                                // Switch to the next GuiWorkArea in the found TabWorkArea.