Projects
Kontact:4.13:Development
baloo
Log In
Username
Password
File not found: _service:set_version:kdepim.dsc
×
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 23
View file
_service:set_version:baloo.spec
Changed
@@ -2,10 +2,11 @@ %define snapshot 12566ea + Name: baloo Summary: KDE Baloo Epoch: 1 -Version: 4.13.0.git20140901.9b36ef8 +Version: 4.13.0.git20141003.187ef56 Release: 0%{?dist} # http://techbase.kde.org/Policies/Licensing_Policy
View file
baloo.spec
Changed
@@ -2,6 +2,7 @@ %define snapshot 12566ea + Name: baloo Summary: KDE Baloo Epoch: 1
View file
_service:recompress:tar_scm:baloo-4.13.0.git20140901.9b36ef8.tar.gz/src/pim/agent/agent.cpp -> _service:recompress:tar_scm:baloo-4.13.0.git20141003.187ef56.tar.gz/src/pim/agent/agent.cpp
Changed
@@ -87,6 +87,7 @@ changeRecorder()->itemFetchScope().setFetchModificationTime(false); changeRecorder()->collectionFetchScope().setAncestorRetrieval(Akonadi::CollectionFetchScope::All); changeRecorder()->collectionFetchScope().ancestorFetchScope().fetchAttribute<Akonadi::EntityDisplayAttribute>(); + changeRecorder()->collectionFetchScope().setListFilter(Akonadi::CollectionFetchScope::Index); changeRecorder()->setChangeRecordingEnabled(false); changeRecorder()->fetchCollection(true); @@ -181,11 +182,25 @@ m_index.scheduleCommit(); } -void BalooIndexingAgent::collectionChanged(const Akonadi::Collection& collection) +void BalooIndexingAgent::collectionChanged(const Akonadi::Collection& collection, const QSet<QByteArray>& changedAttributes) { - //FIXME this is only required if the collections name changed - CollectionUpdateJob *job = new CollectionUpdateJob(m_index, collection, this); - job->start(); + QSet<QByteArray> changes = changedAttributes; + changes.remove("collectionquota"); + changes.remove("timestamp"); + changes.remove("imapquota"); + + if (changes.isEmpty()) { + return; + } + + if (changes.contains("ENTITYDISPLAY")) { + //If the name changed we have to reindex all subcollections + CollectionUpdateJob *job = new CollectionUpdateJob(m_index, collection, this); + job->start(); + } else { + m_index.index(collection); + m_index.scheduleCommit(); + } } void BalooIndexingAgent::collectionRemoved(const Akonadi::Collection& collection)
View file
_service:recompress:tar_scm:baloo-4.13.0.git20140901.9b36ef8.tar.gz/src/pim/agent/agent.h -> _service:recompress:tar_scm:baloo-4.13.0.git20141003.187ef56.tar.gz/src/pim/agent/agent.h
Changed
@@ -63,7 +63,7 @@ const Akonadi::Collection& destinationCollection); virtual void collectionAdded(const Akonadi::Collection& collection, const Akonadi::Collection& parent); - virtual void collectionChanged(const Akonadi::Collection& collection); + virtual void collectionChanged(const Akonadi::Collection& collection, const QSet<QByteArray>& changedAttributes); virtual void collectionRemoved(const Akonadi::Collection& collection); virtual void collectionMoved(const Akonadi::Collection &collection, const Akonadi::Collection &collectionSource, const Akonadi::Collection &collectionDestination);
View file
_service:set_version:baloo.dsc
Changed
@@ -2,7 +2,7 @@ Source: baloo Binary: baloo4, baloo, baloo-utils, libbaloocore4, libbaloofiles4, libbaloopim4, libbalooqueryparser4, libbalooxapian4, baloo-dev, baloo-dbg Architecture: any -Version: 4.13.0.git20140901.9b36ef8 +Version: 4.13.0.git20141003.187ef56 Maintainer: Debian/Ubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Uploaders: Rohan Garg <rohangarg@kubuntu.org>, Maximiliano Curia <maxy@debian.org> Homepage: http://projects.kde.org/baloo
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.