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:
parent
b0789ebe14
commit
fbf2505f8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user