aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtUiTools
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-08-15 17:54:08 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:44 -0300
commit00bd60cfdac4c488b897fa7a0b55da625054a10c (patch)
tree0e292fa182c8fa5c005f14e9fc7c6f2573899c3e /PySide/QtUiTools
parent247116d3200dd0244ba15e5d7c044bb519a24f08 (diff)
Remove obscure code from QUiLoader inject code.
Fixes bug #958. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtUiTools')
-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 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));