Review Request: Fix infinite loop in context view eating CPU until main window is shown

Matěj Laitl matej at laitl.cz
Sun Nov 27 14:30:21 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103271/
-----------------------------------------------------------

Review request for Amarok.


Description
-------

Fix infinite loop in context view eating CPU until main window is shown

We used to use _scene_ sceneRect in
VerticalToolbarContainment::updateGeometry() to update applets and
geometry, but that leaded to infinite loop (across mainloop) -
m_applets->setGeometry(), refresh() would enlarge _scene_ sceneRect by
a few pixels which would trigger updateGeometry() and so on...

We now use _view_ sceneRect to update geometry.

BUG: 278897
FIXED-IN: 2.5


Diffs
-----

  ChangeLog a99a4de75b1941ecdc7cb3b41cce9ad3c996df27 
  src/context/containments/verticallayout/VerticalToolbarContainment.cpp 99fe147ab7b4d5ba8ca6f156a544d4066b1dc3da 

Diff: http://git.reviewboard.kde.org/r/103271/diff/diff


Testing
-------

Amarok doesn't eat CPU on start anymore.


Thanks,

Matěj Laitl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20111127/f357f17d/attachment.html>


More information about the Amarok-devel mailing list