diff options
author | pengwu <peng.1.wu@nokia.com> | 2011-11-27 14:01:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-28 07:58:12 +0100 |
commit | 8eb3278dc0855ff878deebd0f631c050f00bb836 (patch) | |
tree | 3ceda70a8d8911376c5f3e2d6fc71a1e2295136b /src/imports/organizer/qdeclarativeorganizeritem.cpp | |
parent | a756e0d4a8477fb559bef00e18be0225877a79be (diff) |
Fix organizer qml remove detail bug
Check if detail is not empty first
Change-Id: I5f48035367df188f411f2a5bbe0be6cf35e5dac1
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
Diffstat (limited to 'src/imports/organizer/qdeclarativeorganizeritem.cpp')
-rw-r--r-- | src/imports/organizer/qdeclarativeorganizeritem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizeritem.cpp b/src/imports/organizer/qdeclarativeorganizeritem.cpp index 81c65806b..7f58f66e5 100644 --- a/src/imports/organizer/qdeclarativeorganizeritem.cpp +++ b/src/imports/organizer/qdeclarativeorganizeritem.cpp @@ -452,7 +452,7 @@ int QDeclarativeOrganizerItem::_q_detail_count(QDeclarativeListProperty<QDeclara */ bool QDeclarativeOrganizerItem::_q_removeDetail(QDeclarativeOrganizerItemDetail *detail) { - if (!detail->removable()) + if (!detail || !detail->removable()) return false; int key = detail->detail().key(); |