diff options
-rw-r--r-- | PySide/QtUiTools/glue/uitools_loadui.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/PySide/QtUiTools/glue/uitools_loadui.h b/PySide/QtUiTools/glue/uitools_loadui.h index 18bb36050..654ba0aa1 100644 --- a/PySide/QtUiTools/glue/uitools_loadui.h +++ b/PySide/QtUiTools/glue/uitools_loadui.h @@ -33,12 +33,6 @@ static PyObject* QUiLoadedLoadUiFromDevice(QUiLoader* self, QIODevice* dev, QWid if (wdg) { PyObject* pyWdg = Shiboken::Converter<QWidget*>::toPython(wdg); - if (!parent) - parent = wdg; - - if (parent->layout()) - parent->layout()->deleteLater(); - createChildrenNameAttributes(pyWdg, wdg); if (parent) { Shiboken::AutoDecRef pyParent(Shiboken::Converter<QWidget*>::toPython(parent)); |