Clean up a partially scrolled QRollEffect widget
If the associated widget pointer got zeroed while QRollEffect was scrolling, the partially scrolled QRollEffect widget remained on screen indefinitely as 'done' was never set to true. Change-Id: If1567ea740e81b5501137d10db471ca97d295ed8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
ba7f664a7f
commit
486601fbc4
@ -533,7 +533,7 @@ void QRollEffect::scroll()
|
||||
setUpdatesEnabled(true);
|
||||
repaint();
|
||||
}
|
||||
if (done) {
|
||||
if (done || !widget) {
|
||||
anim.stop();
|
||||
qApp->removeEventFilter(this);
|
||||
if (widget) {
|
||||
|
Loading…
Reference in New Issue
Block a user