don't add empty extender groups that are autohide
BUG:258645 svn path=/trunk/KDE/kdelibs/; revision=1212326
This commit is contained in:
parent
79bbb39468
commit
0069c38934
@ -489,6 +489,11 @@ void Extender::dropEvent(QGraphicsSceneDragDropEvent *event)
|
||||
|
||||
void Extender::itemAddedEvent(ExtenderItem *item, const QPointF &pos)
|
||||
{
|
||||
ExtenderGroup *group = item->isGroup()?static_cast<ExtenderGroup*>(item):0;
|
||||
if (group && group->autoHide() && group->items().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!item->group()) {
|
||||
if (pos == QPointF(-1, -1)) {
|
||||
//if it was already there, reposition
|
||||
|
Loading…
Reference in New Issue
Block a user