From 6e4ca1d18f3be5d771ebd7f95064017a8d1ae685 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 18 Aug 2009 19:27:19 +0000 Subject: [PATCH] Fix bug #5893: LyX closes hidden dirty buffers without asking. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index f80ba0d449..d44065f07c 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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. -- 2.39.2