]> 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)
committerRichard Heck <rgheck@lyx.org>
Wed, 15 Jun 2016 21:32:53 +0000 (22:32 +0100)
commit009dc75fef382738acdf00a2a749293f56a125eb
tree8fc23a0f31dfc0fedc99f59318e198d5468871e7
parent8149d4fc0b06585d4c86f9e4e9dc7b648169a0cd
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