TocWidget: disable the tree view during an update in order to minimize a bit the flashing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26633 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-09-30 07:18:24 +00:00
parent 3ddfec9ae0
commit 5cfe7daadb

View File

@ -256,7 +256,8 @@ void TocWidget::updateView()
return;
}
typeCO->setEnabled(true);
tocTV->setEnabled(true);
tocTV->setEnabled(false);
tocTV->setUpdatesEnabled(false);
QAbstractItemModel * toc_model = gui_view_.tocModels().model(current_type_);
if (tocTV->model() != toc_model) {
@ -277,6 +278,8 @@ void TocWidget::updateView()
setTreeDepth(depth_);
if (canNavigate(current_type_))
select(gui_view_.tocModels().currentIndex(current_type_));
tocTV->setEnabled(true);
tocTV->setUpdatesEnabled(true);
}