From kde-commits Sun Jun 30 22:37:54 2013 From: David Edmundson Date: Sun, 30 Jun 2013 22:37:54 +0000 To: kde-commits Subject: [libkpeople/dave] src: Don't update contact directly from resource watcher Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=137263188732567 Git commit edeaafccc3eb4713cc455e7bf9b118f86d13b957 by David Edmundson, on = behalf of Martin Klapetek. Committed on 29/06/2013 at 10:55. Pushed by davidedmundson into branch 'dave'. Don't update contact directly from resource watcher M +1 -5 src/resourcewatcherservice.cpp http://commits.kde.org/libkpeople/edeaafccc3eb4713cc455e7bf9b118f86d13b957 diff --git a/src/resourcewatcherservice.cpp b/src/resourcewatcherservice.cpp index 2b325d3..4a215ff 100644 --- a/src/resourcewatcherservice.cpp +++ b/src/resourcewatcherservice.cpp @@ -151,11 +151,7 @@ void ResourceWatcherService::onContactPropertyModified= (const Nepomuk2::Resource kDebug() << "contact changed:" << property.name() << res.uri(); = Q_D(ResourceWatcherService); - ContactItem *item =3D d->personsModel->contactItemForUri(res.uri()); - if (item) { - kDebug() << "Existing contact found, running update"; - item->loadData(); - } + d->personsModel->updateContact(res.uri()); } = void ResourceWatcherService::contactCreated(const Nepomuk2::Resource &res)