From f08bf871f697eef2b7f22fee716014dc47fec146 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 21 May 2010 12:49:27 +0000 Subject: [PATCH] be sure to relayout if a different position is asked svn path=/trunk/KDE/kdelibs/; revision=1129158 --- extenders/extender.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extenders/extender.cpp b/extenders/extender.cpp index 625e25b81..548b1a2bc 100644 --- a/extenders/extender.cpp +++ b/extenders/extender.cpp @@ -422,6 +422,8 @@ void Extender::itemAddedEvent(ExtenderItem *item, const QPointF &pos) { if (!item->group()) { if (pos == QPointF(-1, -1)) { + //if it was already there, reposition + d->layout->removeItem(item); //if just plain adding an item, add it at a sane position: if (appearance() == BottomUpStacked) { //at the top