be careful not call setFailed when we already have
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692626
This commit is contained in:
parent
aa1dd0b63f
commit
0f8b73a399
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user