]> git.lyx.org Git - lyx.git/commit
TocWidget: Fix perf regression
authorGuillaume Munch <gm@lyx.org>
Fri, 29 Apr 2016 23:25:46 +0000 (00:25 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:42 +0000 (17:55 -0400)
commit2f9d3233960c3dd362e2800e1675a094743b5c43
tree322d0db2c6c331a15a9379fb1534ccd3e8ceb80d
parent0e740018ff15aa005f024b0c4ebbf68079778b3b
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