only if it is being used as a containment actually give it the toolbox

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738519
This commit is contained in:
Aaron J. Seigo 2007-11-19 02:27:53 +00:00
parent b0789ebe14
commit fbf2505f8a

View File

@ -110,7 +110,7 @@ void Containment::init()
connect(Phase::self(), SIGNAL(animationComplete(QGraphicsItem*,Plasma::Phase::Animation)),
this, SLOT(appletAnimationComplete(QGraphicsItem*,Plasma::Phase::Animation)));
if (containmentType() == DesktopContainment) {
if (isContainment() && containmentType() == DesktopContainment) {
Plasma::PushButton *tool = new Plasma::PushButton(i18n("Add Widgets"));
tool->resize(tool->sizeHint());
addToolBoxTool(tool);