summaryrefslogtreecommitdiffstats
path: root/src/imports/organizer/qdeclarativeorganizermodel.cpp
diff options
context:
space:
mode:
authorMichael Krasnyk <michael.krasnyk@gmail.com>2013-12-20 15:55:13 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-17 18:05:41 +0100
commitb81f79f1da30398cec7315e4dd90665109bf86d4 (patch)
tree3f9156d20a00b714999310a18b6980db05638e4e /src/imports/organizer/qdeclarativeorganizermodel.cpp
parent45d104a6da17f713a08b9e1be6a1c2383f947d98 (diff)
Emit dataChanged() on item modifications
Change-Id: I1783128465ec56edf8bd67692beefde23715ad9c Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/imports/organizer/qdeclarativeorganizermodel.cpp')
-rw-r--r--src/imports/organizer/qdeclarativeorganizermodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizermodel.cpp b/src/imports/organizer/qdeclarativeorganizermodel.cpp
index c3e6b678c..df24e5e38 100644
--- a/src/imports/organizer/qdeclarativeorganizermodel.cpp
+++ b/src/imports/organizer/qdeclarativeorganizermodel.cpp
@@ -1468,6 +1468,8 @@ void QDeclarativeOrganizerModel::onItemsModifiedFetchRequestStateChanged(QOrgani
if (!newItem.id().isNull() && !oldItem.id().isNull() && newItem.id() == oldItem.id()) {
if (notifiedItems.contains(newItem.id())) {
d->m_items[oldInd]->setItem(newItem);
+ const QModelIndex idx = index(oldInd, 0);
+ emit dataChanged(idx, idx);
emitSignal = true;
}
newInd++;