mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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:
parent
2a4a108e60
commit
72dc5352dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user