]> git.lyx.org Git - features.git/commitdiff
Fix bug #9754
authorGuillaume Munch <gm@lyx.org>
Fri, 4 Sep 2015 14:27:50 +0000 (15:27 +0100)
committerGuillaume Munch <gm@lyx.org>
Sat, 12 Sep 2015 23:45:22 +0000 (00:45 +0100)
Don't delay the update of the TOC panel on switching documents

src/frontends/qt4/GuiToc.cpp

index af9f6f957f403eaf85f29bad73f0a8dd5d0c789c..a18fbba03aa3ad5da992bc5ac01b640d2d782613 100644 (file)
@@ -66,11 +66,9 @@ void GuiToc::dispatchParams()
 }
 
 
-void GuiToc::enableView(bool enable)
+void GuiToc::enableView(bool /*enable*/)
 {
-       if (!enable)
-               // In the opposite case, updateView() will be called anyway.
-               widget_->updateView();
+       widget_->updateViewForce();
 }