]> git.lyx.org Git - features.git/commitdiff
fix crash.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 30 Nov 2007 18:34:25 +0000 (18:34 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 30 Nov 2007 18:34:25 +0000 (18:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21881 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 2a5741d8b6b12cfe0f45d027dd3c1cef31ae96cc..4811e41e497edfb3f0562803a498cc792ee0cfc2 100644 (file)
@@ -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))