* TocWidget: whitespace only.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28024 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-07 14:49:40 +00:00
parent 2a4a108e60
commit 72dc5352dd

View File

@ -268,11 +268,12 @@ void TocWidget::updateView()
tocTV->setEnabled(false);
tocTV->setUpdatesEnabled(false);
QAbstractItemModel * toc_model = gui_view_.tocModels().model(current_type_);
QAbstractItemModel * toc_model = gui_view_.tocModels().model(current_type_);
if (tocTV->model() != toc_model) {
tocTV->setModel(toc_model);
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
if (persistent_) setTreeDepth(depth_);
if (persistent_)
setTreeDepth(depth_);
}
sortCB->blockSignals(true);
@ -287,7 +288,8 @@ void TocWidget::updateView()
depthSL->setMaximum(gui_view_.tocModels().depth(current_type_));
depthSL->setValue(depth_);
if (!persistent_) setTreeDepth(depth_);
if (!persistent_)
setTreeDepth(depth_);
if (canNavigate(current_type_))
select(gui_view_.tocModels().currentIndex(current_type_));
tocTV->setEnabled(true);