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) {
case Containment::PanelContainment:
toolBox = new PanelToolBox(q);
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
break;
//defaults to DesktopContainment right now
default:
toolBox = new DesktopToolBox(q);
QObject::connect(toolBox, SIGNAL(toggled()), toolBox, SLOT(toggle()));
break;
}
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
positionToolBox();
if (type == Containment::PanelContainment && q->immutability() != Mutable) {