Index: kdockwidget.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget.cpp,v
retrieving revision 1.88
diff -r1.88 kdockwidget.cpp
368a369
>   d->pendingDtor = true;
836c837,840
<       applyToWidget( 0L );
---
>       if (!d->pendingDtor) {
>         // don't reparent in the dtor of this
>         applyToWidget( 0L );
>       }
Index: kdockwidget_private.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget_private.cpp,v
retrieving revision 1.27
diff -r1.27 kdockwidget_private.cpp
345a346
>   ,pendingDtor(false)
Index: kdockwidget_private.h
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget_private.h,v
retrieving revision 1.15
diff -r1.15 kdockwidget_private.h
128a129
>   bool pendingDtor;
