]> git.lyx.org Git - features.git/commitdiff
* src/frontends/qt4/GuiToolbar.cpp (update):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 1 Oct 2007 09:19:09 +0000 (09:19 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 1 Oct 2007 09:19:09 +0000 (09:19 +0000)
- only update visible toolbars (performance fix).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20626 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index f8e26e696abe5ddd33285b4366513a1a9109dbab..eec4c257a15a6f88b076c2b762234ea75f04a753 100644 (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)