diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index af9f6f957f..a18fbba03a 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -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(); }