Let the LyX logo show up when closing last document with the F&R dialog open.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32878 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2010-01-08 09:29:17 +00:00
parent 7e9aea6773
commit 090435cf27

View File

@ -2127,6 +2127,7 @@ bool GuiView::closeWorkArea(GuiWorkArea * wa)
bool GuiView::closeBuffer() bool GuiView::closeBuffer()
{ {
GuiWorkArea * wa = currentMainWorkArea(); GuiWorkArea * wa = currentMainWorkArea();
setCurrentWorkArea(wa);
Buffer & buf = wa->bufferView().buffer(); Buffer & buf = wa->bufferView().buffer();
return wa && closeWorkArea(wa, !buf.parent()); return wa && closeWorkArea(wa, !buf.parent());
} }