]> git.lyx.org Git - features.git/commit
TocWidget: Fix perf regression
authorGuillaume Munch <gm@lyx.org>
Fri, 29 Apr 2016 23:25:46 +0000 (00:25 +0100)
committerGuillaume Munch <gm@lyx.org>
Tue, 3 May 2016 16:20:58 +0000 (17:20 +0100)
commit90c8b0697f693df67f5746d31ce78bb3eee1a164
tree442766f1237e2d1ea35120f4ad5cbec5de1fc697
parent5b976a5ebc6782ecfadb3e34c6ff074916d788be
TocWidget: Fix perf regression

4d1ad336 fixed #9754 but caused perf issues by cancelling the gains of having a
timer (introduced after #7138). This introduces in GuiToc::enableView() a
lightweight check of whether the widget should be updated. The logic is inspired
from GuiViewSource::enableView().
src/frontends/qt4/GuiToc.cpp
src/frontends/qt4/TocWidget.cpp
src/frontends/qt4/TocWidget.h