Projects
Kontact:4.13:Git
akonadi
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:set_version:akonadi.spec
Changed
@@ -12,7 +12,7 @@ Summary: PIM Storage Service Name: akonadi -Version: 1.12.42.git20141212.b6a0519 +Version: 1.12.42.git20150105.5685b60 # Magic provides since this is what ends up in the pkgconfig Provides: %{name}%{?_isa} = 1.12.42.0 Release: 0%{?dist}
View file
_service:recompress:tar_scm:akonadi-1.12.42.git20141212.b6a0519.tar.gz/server/src/handler/tagstore.cpp -> _service:recompress:tar_scm:akonadi-1.12.42.git20150105.5685b60.tar.gz/server/src/handler/tagstore.cpp
Changed
@@ -52,6 +52,8 @@ throw HandlerException( "No such tag" ); } + QSet<QByteArray> changes; + // Retrieve all tag's attributes const TagAttribute::List attributes = TagAttribute::retrieveFiltered( TagAttribute::tagIdFullColumnName(), tagId ); QMap<QByteArray,TagAttribute> attributesMap; @@ -67,6 +69,7 @@ if ( attr == AKONADI_PARAM_PARENT ) { const qint64 parent = m_streamParser->readNumber(); changedTag.setParentId( parent ); + changes << AKONADI_PARAM_PARENT; } else if ( attr == AKONADI_PARAM_GID ) { throw HandlerException( "Changing tag GID is not allowed" ); } else if ( attr == AKONADI_PARAM_UID ) { @@ -82,7 +85,10 @@ } type = newType; } - changedTag.setTagType(type); + if (type.id() != changedTag.typeId()) { + changedTag.setTagType(type); + changes << AKONADI_PARAM_MIMETYPE; + } } else if ( attr == AKONADI_PARAM_REMOTEID ) { const QString &remoteId = m_streamParser->readUtf8String(); if (!connection()->context()->resource().isValid()) { @@ -116,6 +122,7 @@ // We can't break here, we need to finish reading the command } } + //Do not notify about remoteid changes, otherwise we bounce back and forth between resources recording it's change and updating the remote id. } else { if ( attr.startsWith( '-' ) ) { const QByteArray attrName = attr.mid( 1 ); @@ -140,6 +147,7 @@ throw HandlerException("Failed to insert attribute"); } } + changes << attr; } } @@ -147,7 +155,9 @@ if (!changedTag.update()) { throw HandlerException( "Failed to store changes" ); } - DataStore::self()->notificationCollector()->tagChanged( changedTag ); + if (!changes.isEmpty()) { + DataStore::self()->notificationCollector()->tagChanged( changedTag ); + } ImapSet set; set.add( QVector<qint64>() << tagId );
View file
_service:set_version:akonadi.dsc
Changed
@@ -2,7 +2,7 @@ Source: akonadi Binary: akonadi-server, libakonadiprotocolinternals1, libakonadi-dev, akonadi-backend-mysql, akonadi-backend-postgresql, akonadi-backend-sqlite, akonadi-dbg Architecture: any all -Version: 1.12.42.git20141212.b6a0519 +Version: 1.12.42.git20150105.5685b60 Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Uploaders: Sune Vuorela <debian@pusling.com>, Modestas Vainius <modax@debian.org>, Fathi Boudra <fabo@debian.org>, Maximiliano Curia <maxy@debian.org> Homepage: http://pim.kde.org/akonadi
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
.