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
This commit is contained in:
Vincent van Ravesteijn 2009-08-18 19:27:19 +00:00
parent c694bbe6ea
commit 6e4ca1d18f

View 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.