From ac6a69d29ab98ecc5e7ee7dc026a1dd48566008a Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 17 Nov 2008 01:27:14 +0000 Subject: [PATCH] don't bother painting until we've set up svn path=/trunk/KDE/kdelibs/; revision=885308 --- applet.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/applet.cpp b/applet.cpp index 47fff2ca9..9deba317e 100644 --- a/applet.cpp +++ b/applet.cpp @@ -973,8 +973,11 @@ void Applet::addAction(QString name, QAction *action) void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { - QPainter *p; - //FIXME: we should probably set the pixmap to screenSize(), but that breaks stuff atm. + if (!d->started) { + return; + } + + QPainter *p = painter; QPixmap *pixmap = 0; if (d->ghost) { @@ -987,8 +990,6 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW p = new QPainter(); p->begin(pixmap); - } else { - p = painter; } p->save();