From: Vincent van Ravesteijn Date: Tue, 18 Aug 2009 19:27:19 +0000 (+0000) Subject: Fix bug #5893: LyX closes hidden dirty buffers without asking. X-Git-Tag: 2.0.0~5661 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6e4ca1d18f3be5d771ebd7f95064017a8d1ae685;p=features.git 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 --- 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.