From 165f387e45c0822eb3f36e4fc1d4a5b7cdd82aab Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 2 Oct 2008 19:38:41 +0000 Subject: [PATCH] be paranoid about it svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867096 --- applet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index d99544de8..c69fda5a6 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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);