respect immutability on panel creation; there's no way to add panels at runtime anymore, but at least this way the locking is respected if somehow one manages to do so.

BUG:165139

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=825672
This commit is contained in:
Aaron J. Seigo 2008-06-28 23:50:43 +00:00
parent cd2feaca66
commit bd4c5669a8

View File

@ -1073,8 +1073,12 @@ ToolBox* Containment::Private::createToolBox()
connect(toolBox, SIGNAL(toggled()), toolBox, SLOT(toggle()));
break;
}
positionToolBox();
if (type == PanelContainment && q->immutability() != Mutable) {
toolBox->hide();
}
}
return toolBox;