mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
3ddfec9ae0
commit
5cfe7daadb
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user