temporary fix for the beta: don't make items unmovable when added to a layout as that is screwing with MouseReleaseEvents. this means panels items are, once again, freely draggable (which is wrong) but on the upside you can open the menu again

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729202
This commit is contained in:
Aaron J. Seigo 2007-10-25 09:12:15 +00:00
parent 08d99afd90
commit 49874ae140

View File

@ -441,10 +441,10 @@ void Widget::managingLayoutChanged()
if (managingLayout()) { if (managingLayout()) {
d->wasMovable = flags() & ItemIsMovable; d->wasMovable = flags() & ItemIsMovable;
if (!dynamic_cast<FreeLayout*>(managingLayout())) { if (!dynamic_cast<FreeLayout*>(managingLayout())) {
setFlag(ItemIsMovable, false); // setFlag(ItemIsMovable, false);
} }
} else { } else {
setFlag(ItemIsMovable, d->wasMovable); // setFlag(ItemIsMovable, d->wasMovable);
} }
} }