be careful not call setFailed when we already have

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692626
This commit is contained in:
Aaron J. Seigo 2007-07-26 02:31:36 +00:00
parent aa1dd0b63f
commit 0f8b73a399

View File

@ -155,9 +155,12 @@ void GLApplet::paintInterface(QPainter *painter,
const QRect &contentsRect)
{
Q_ASSERT(d->pbuf);
if (!d->dummy->isValid() ||
!d->pbuf->isValid()) {
if ((!d->dummy->isValid() ||
!d->pbuf->isValid())) {
if (!failedToLaunch()) {
setFailedToLaunch(true, i18n("Your machine doesn't support OpenGL applets."));
}
return;
}
d->pbuf->makeCurrent();