diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2011-01-18 14:42:02 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:51:47 -0300 |
commit | 4f72f1d3686a1bf3a249b5b3265d8e10e24014cf (patch) | |
tree | 6ec861e75da7388010d22726860bec0f0b58ed4e /PySide/QtGui/glue/qwidget_glue.h | |
parent | f0181b754558580b90dae8868cb812fa0f6e4322 (diff) |
Fixed Widget and Layout inject code to avoid problems in armel arch.
Diffstat (limited to 'PySide/QtGui/glue/qwidget_glue.h')
-rw-r--r-- | PySide/QtGui/glue/qwidget_glue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/glue/qwidget_glue.h b/PySide/QtGui/glue/qwidget_glue.h index 9b20cb5ba..129a54a51 100644 --- a/PySide/QtGui/glue/qwidget_glue.h +++ b/PySide/QtGui/glue/qwidget_glue.h @@ -14,7 +14,7 @@ static inline void qwidgetReparentLayout(QWidget *parent, QLayout *layout) for (int i=0; i < layout->count(); i++) { QLayoutItem* item = layout->itemAt(i); - if (PyErr_Occurred()) + if (PyErr_Occurred() || !item) return; QWidget* w = item->widget(); |