diff --git a/extenders/extender.cpp b/extenders/extender.cpp index 670099461..4e413502c 100644 --- a/extenders/extender.cpp +++ b/extenders/extender.cpp @@ -489,6 +489,11 @@ void Extender::dropEvent(QGraphicsSceneDragDropEvent *event) void Extender::itemAddedEvent(ExtenderItem *item, const QPointF &pos) { + ExtenderGroup *group = item->isGroup()?static_cast(item):0; + if (group && group->autoHide() && group->items().isEmpty()) { + return; + } + if (!item->group()) { if (pos == QPointF(-1, -1)) { //if it was already there, reposition