diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index 7f2c5bac8b..fbb017ad7c 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -259,6 +259,7 @@ void TocWidget::updateView() bool controls_enabled = toc_model && toc_model->rowCount() > 0 && !gui_view_.buffer()->isReadonly(); enableControls(controls_enabled); + depthSL->setMaximum(gui_view_.tocModels().depth(current_type_)); depthSL->setValue(depth_); setTreeDepth(depth_);