From f53f60b1cee3e69cdd2f8d5c4bb97dd8887966fc Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 30 Nov 2007 18:34:25 +0000 Subject: [PATCH] fix crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21881 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 2a5741d8b6..4811e41e49 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -731,10 +731,6 @@ void GuiView::removeWorkArea(GuiWorkArea * wa) d.current_work_area_ = 0; } - // removing a work area often results from closing a file so - // update the toc in any case. - updateToc(); - for (int i = 0; i != d.splitter_->count(); ++i) { TabWorkArea * twa = d.tabWorkArea(i); if (!twa->removeWorkArea(wa)) -- 2.39.2