mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* 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:
parent
7e2bdf62f2
commit
49cf92170a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user