destroy the message overay proxy widget if it exists and we get rid of the message overlay

svn path=/trunk/KDE/kdelibs/; revision=979518
This commit is contained in:
Aaron J. Seigo 2009-06-10 02:12:29 +00:00
parent 42de815ffb
commit 5dd5576d60

View File

@ -546,9 +546,15 @@ void AppletPrivate::destroyMessageOverlay()
if (!messageOverlay) { if (!messageOverlay) {
return; return;
} }
messageOverlay->destroy();
messageOverlay = 0; messageOverlay->destroy();
essageOverlay = 0;
if (messageOverlayProxy) {
messageOverlayProxy->setWidget(0);
delete messageOverlayProxy;
messageOverlayProxy = 0;
}
MessageButton buttonCode = ButtonNo; MessageButton buttonCode = ButtonNo;
//find out if we're disappearing because of a button press //find out if we're disappearing because of a button press