summaryrefslogtreecommitdiffstats
path: root/src/imports/organizer/qdeclarativeorganizeritem.cpp
diff options
context:
space:
mode:
authorXizhi Zhu <xizhi.zhu@nokia.com>2011-12-12 14:58:33 +0200
committerQt by Nokia <qt-info@nokia.com>2012-01-09 11:52:26 +0100
commit24da1d64021a26d41135bb605008179422d60579 (patch)
treec348ef1e24a1a9439e30c31de244f63bf96c2c57 /src/imports/organizer/qdeclarativeorganizeritem.cpp
parent1227baf736ac70d116772a52c8f61e8a1d36dd0e (diff)
Remove access constraints of item detail.
If certain detail is removable, read-only, or unique, etc. is a back-end specific feature, and should not be handled in the common code. Otherwise, it's difficult to handle cases where one item is retrieved from one back-end, modified, and saved to another back-end, where the access constraints are different. Change-Id: I31873e7dc3278200b937cc03da3607cc1f3375ae 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizeritem.cpp b/src/imports/organizer/qdeclarativeorganizeritem.cpp
index 1f832be4c..b74060822 100644
--- a/src/imports/organizer/qdeclarativeorganizeritem.cpp
+++ b/src/imports/organizer/qdeclarativeorganizeritem.cpp
@@ -450,7 +450,7 @@ int QDeclarativeOrganizerItem::_q_detail_count(QDeclarativeListProperty<QDeclara
*/
bool QDeclarativeOrganizerItem::_q_removeDetail(QDeclarativeOrganizerItemDetail *detail)
{
- if (!detail || !detail->removable())
+ if (!detail)
return false;
int key = detail->detail().key();