be paranoid about it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867096
This commit is contained in:
Aaron J. Seigo 2008-10-02 19:38:41 +00:00
parent 3365bc1d94
commit 165f387e45

View File

@ -697,8 +697,10 @@ void Applet::setConfigurationRequired(bool needsConfig, const QString &reason)
}
if (d->needsConfigOverlay) {
delete d->needsConfigOverlay;
QGraphicsWidget *w = d->needsConfigOverlay;
d->needsConfigOverlay = 0;
w->hide();
w->deleteLater();
return;
}
@ -735,6 +737,7 @@ void Applet::setConfigurationRequired(bool needsConfig, const QString &reason)
}
PushButton *configWidget = new PushButton(d->needsConfigOverlay);
configWidget = new PushButton(d->needsConfigOverlay);
configWidget->setText(i18n("Configure..."));
connect(configWidget, SIGNAL(clicked()), this, SLOT(showConfigurationInterface()));
configLayout->addItem(configWidget, row, 1);