1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

do not trigger repaint if invisible

This commit is contained in:
krepa098 2015-02-12 11:32:13 +01:00
parent f765daf98d
commit 936a34faf1

View File

@ -78,6 +78,6 @@ void NotificationIcon::updateGradient()
grad.setColorAt(qMin(1.0, alpha + dotWidth), Qt::lightGray);
grad.setColorAt(1, Qt::lightGray);
if(scene())
if(scene() && isVisible())
scene()->invalidate(sceneBoundingRect());
}