summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-08-15 17:54:08 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-08-15 18:47:20 -0300
commit44eab232ed39e800048e74300c61a091ed3d71bc (patch)
treebfb95d31226a4b4a0984d2227c87c2149d2f2faa
parent612b27132d6747b4be69e2e2ec3f161d120859c6 (diff)
downloadpyside-44eab232ed39e800048e74300c61a091ed3d71bc.tar.gz
pyside-44eab232ed39e800048e74300c61a091ed3d71bc.tar.xz
pyside-44eab232ed39e800048e74300c61a091ed3d71bc.zip
Remove obscure code from QUiLoader inject code.
Fixes bug #958. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-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));