always connect the toolbox toggle signal to the containment

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828085
This commit is contained in:
Aaron J. Seigo 2008-07-04 16:45:34 +00:00
parent 55db8b640a
commit 9e8629645a

View File

@ -1069,15 +1069,14 @@ ToolBox* ContainmentPrivate::createToolBox()
switch (type) { switch (type) {
case Containment::PanelContainment: case Containment::PanelContainment:
toolBox = new PanelToolBox(q); toolBox = new PanelToolBox(q);
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
break; break;
//defaults to DesktopContainment right now //defaults to DesktopContainment right now
default: default:
toolBox = new DesktopToolBox(q); toolBox = new DesktopToolBox(q);
QObject::connect(toolBox, SIGNAL(toggled()), toolBox, SLOT(toggle()));
break; break;
} }
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
positionToolBox(); positionToolBox();
if (type == Containment::PanelContainment && q->immutability() != Mutable) { if (type == Containment::PanelContainment && q->immutability() != Mutable) {