* src/frontends/qt4/GuiToolbar.cpp (update):

- only update visible toolbars (performance fix).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20626 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-10-01 09:19:09 +00:00
parent 7e2bdf62f2
commit 49cf92170a

View File

@ -350,6 +350,9 @@ void GuiToolbar::saveInfo(ToolbarSection::ToolbarInfo & tbinfo)
void GuiToolbar::update()
{
// update visible toolbars only
if (!isVisible())
return;
// This is a speed bottleneck because this is called on every keypress
// and update calls getStatus, which copies the cursor at least two times
for (int i = 0; i < actions_.size(); ++i)