remove some old code from when creating the toolbox created the actions and custom containments never had toolbox; that was an implementation detail that no longer fits the definitions (e.g. custom containments can now have toolboxes if they so wish)

svn path=/trunk/KDE/kdelibs/; revision=943974
This commit is contained in:
Aaron J. Seigo 2009-03-24 18:50:18 +00:00
parent 1427ff946c
commit 9c6bd76035

View File

@ -1967,17 +1967,6 @@ void AppletPrivate::setIsContainment(bool nowIsContainment, bool forceUpdate)
delete mainConfig;
mainConfig = 0;
Containment *c = qobject_cast<Containment*>(q);
if (c) {
if (isContainment) {
// set up the toolbox
c->d->createToolBox();
} else {
delete c->d->toolBox;
c->d->toolBox = 0;
}
}
KAction *configAction = qobject_cast<KAction*>(actions.action("configure"));
if (configAction) {
QObject::disconnect(configAction, SIGNAL(triggered()), q, SLOT(requestConfiguration()));