Make sure the topview is deleted in the applethandle's dtor, and make goTopLevel always have a return value.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809157
This commit is contained in:
Rob Scheepmaker 2008-05-18 12:54:20 +00:00
parent cce4c58318
commit 8fd94a9931

View File

@ -133,6 +133,9 @@ AppletHandle::~AppletHandle()
m_applet->update(); // re-render the background, now we've transformed the applet
}
if (m_topview) {
delete m_topview;
}
}
Applet *AppletHandle::applet() const
@ -312,6 +315,8 @@ bool AppletHandle::goTopLevel(const QPoint & pos) {
} else {
return false;
}
} else {
return true;
}
}