diff options
-rw-r--r-- | common/facade.cpp | 6 | ||||
-rw-r--r-- | common/modelresult.cpp | 6 | ||||
-rw-r--r-- | common/resourceaccess.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/common/facade.cpp b/common/facade.cpp index 59972bf..850d28b 100644 --- a/common/facade.cpp +++ b/common/facade.cpp | |||
@@ -186,15 +186,15 @@ void GenericFacade<DomainType>::replaySet(ResultSet &resultSet, Akonadi2::Result | |||
186 | while (resultSet.next([&resultProvider](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool { | 186 | while (resultSet.next([&resultProvider](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool { |
187 | switch (operation) { | 187 | switch (operation) { |
188 | case Akonadi2::Operation_Creation: | 188 | case Akonadi2::Operation_Creation: |
189 | Trace() << "Got creation"; | 189 | // Trace() << "Got creation"; |
190 | resultProvider.add(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); | 190 | resultProvider.add(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); |
191 | break; | 191 | break; |
192 | case Akonadi2::Operation_Modification: | 192 | case Akonadi2::Operation_Modification: |
193 | Trace() << "Got modification"; | 193 | // Trace() << "Got modification"; |
194 | resultProvider.modify(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); | 194 | resultProvider.modify(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); |
195 | break; | 195 | break; |
196 | case Akonadi2::Operation_Removal: | 196 | case Akonadi2::Operation_Removal: |
197 | Trace() << "Got removal"; | 197 | // Trace() << "Got removal"; |
198 | resultProvider.remove(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); | 198 | resultProvider.remove(Akonadi2::ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<DomainType>(*value).template staticCast<DomainType>()); |
199 | break; | 199 | break; |
200 | } | 200 | } |
diff --git a/common/modelresult.cpp b/common/modelresult.cpp index 5b9e24f..4102cda 100644 --- a/common/modelresult.cpp +++ b/common/modelresult.cpp | |||
@@ -124,7 +124,7 @@ void ModelResult<T, Ptr>::add(const Ptr &value) | |||
124 | return; | 124 | return; |
125 | } | 125 | } |
126 | auto parent = createIndexFromId(id); | 126 | auto parent = createIndexFromId(id); |
127 | qDebug() << "Added entity " << childId << value->identifier() << id; | 127 | // qDebug() << "Added entity " << childId << value->identifier() << id; |
128 | const auto keys = mTree[id]; | 128 | const auto keys = mTree[id]; |
129 | int index = 0; | 129 | int index = 0; |
130 | for (; index < keys.size(); index++) { | 130 | for (; index < keys.size(); index++) { |
@@ -136,13 +136,13 @@ void ModelResult<T, Ptr>::add(const Ptr &value) | |||
136 | Warning() << "Entity already in model " << value->identifier(); | 136 | Warning() << "Entity already in model " << value->identifier(); |
137 | return; | 137 | return; |
138 | } | 138 | } |
139 | qDebug() << "Inserting rows " << index << parent; | 139 | // qDebug() << "Inserting rows " << index << parent; |
140 | beginInsertRows(QModelIndex(), index, index); | 140 | beginInsertRows(QModelIndex(), index, index); |
141 | mEntities.insert(childId, value); | 141 | mEntities.insert(childId, value); |
142 | mTree[id].insert(index, childId); | 142 | mTree[id].insert(index, childId); |
143 | mParents.insert(childId, id); | 143 | mParents.insert(childId, id); |
144 | endInsertRows(); | 144 | endInsertRows(); |
145 | qDebug() << "Inserted rows " << mTree[id].size(); | 145 | // qDebug() << "Inserted rows " << mTree[id].size(); |
146 | } | 146 | } |
147 | 147 | ||
148 | 148 | ||
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 88f785f..1b46b82 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -340,7 +340,7 @@ KAsync::Job<void> ResourceAccess::sendRevisionReplayedCommand(qint64 revision) | |||
340 | void ResourceAccess::open() | 340 | void ResourceAccess::open() |
341 | { | 341 | { |
342 | if (d->socket && d->socket->isValid()) { | 342 | if (d->socket && d->socket->isValid()) { |
343 | Trace() << "Socket valid, so not opening again"; | 343 | // Trace() << "Socket valid, so not opening again"; |
344 | return; | 344 | return; |
345 | } | 345 | } |
346 | if (d->openingSocket) { | 346 | if (d->openingSocket) { |