diff options
Diffstat (limited to 'PySide/QtGui/glue/qlayout_help_functions.h')
-rw-r--r-- | PySide/QtGui/glue/qlayout_help_functions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h index 8420cb3ac..90c950a5f 100644 --- a/PySide/QtGui/glue/qlayout_help_functions.h +++ b/PySide/QtGui/glue/qlayout_help_functions.h @@ -40,7 +40,7 @@ inline void addLayoutOwnership(QLayout* layout, QLayout* other) for (int i=0, i_max=other->count(); i < i_max; i++) { QLayoutItem* item = other->itemAt(i); - if (PyErr_Occurred()) + if (PyErr_Occurred() || !item) return; addLayoutOwnership(layout, item); |