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)
|
const QRect &contentsRect)
|
||||||
{
|
{
|
||||||
Q_ASSERT(d->pbuf);
|
Q_ASSERT(d->pbuf);
|
||||||
if (!d->dummy->isValid() ||
|
if ((!d->dummy->isValid() ||
|
||||||
!d->pbuf->isValid()) {
|
!d->pbuf->isValid())) {
|
||||||
setFailedToLaunch(true, i18n("Your machine doesn't support OpenGL applets."));
|
if (!failedToLaunch()) {
|
||||||
|
setFailedToLaunch(true, i18n("Your machine doesn't support OpenGL applets."));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
d->pbuf->makeCurrent();
|
d->pbuf->makeCurrent();
|
||||||
|
Loading…
Reference in New Issue
Block a user