summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PySide/QtUiTools/glue/uitools_loadui.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/PySide/QtUiTools/glue/uitools_loadui.h b/PySide/QtUiTools/glue/uitools_loadui.h
index 18bb360..654ba0a 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));