Revert unwanted part

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26361 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-12 02:11:07 +00:00
parent 9ebf6bf506
commit 0cd57df397

View File

@ -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_);