Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
eb426ee1
Commit
eb426ee1
authored
Mar 24, 2013
by
Grégory Oestreicher
Browse files
Merge remote-tracking branch 'origin/KDE/4.10'
parents
69f4fea0
f23ef9f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/dav/resource/davgroupwareresource.cpp
View file @
eb426ee1
...
...
@@ -88,6 +88,7 @@ DavGroupwareResource::DavGroupwareResource( const QString &id )
cachePolicy
.
setSyncOnDemand
(
false
);
cachePolicy
.
setCacheTimeout
(
-
1
);
cachePolicy
.
setIntervalCheckTime
(
refreshInterval
);
cachePolicy
.
setLocalParts
(
QStringList
()
<<
QLatin1String
(
"ALL"
)
);
mDavCollectionRoot
.
setCachePolicy
(
cachePolicy
);
changeRecorder
()
->
fetchCollection
(
true
);
...
...
@@ -441,7 +442,12 @@ void DavGroupwareResource::onCollectionRemovedFinished( KJob *job )
}
Akonadi
::
Collection
collection
=
job
->
property
(
"collection"
).
value
<
Akonadi
::
Collection
>
();
mItemsRidCache
.
remove
(
collection
.
remoteId
()
);
if
(
mItemsRidCache
.
contains
(
collection
.
remoteId
()
)
)
{
foreach
(
const
QString
&
rid
,
mItemsRidCache
.
value
(
collection
.
remoteId
()
)
)
{
mEtagCache
.
removeEtag
(
rid
);
}
mItemsRidCache
.
remove
(
collection
.
remoteId
()
);
}
changeProcessed
();
}
...
...
@@ -816,6 +822,7 @@ void DavGroupwareResource::onItemRemovedFinished( KJob *job )
Akonadi
::
Item
item
=
job
->
property
(
"item"
).
value
<
Akonadi
::
Item
>
();
Akonadi
::
Collection
collection
=
job
->
property
(
"collection"
).
value
<
Akonadi
::
Collection
>
();
mItemsRidCache
[
collection
.
remoteId
()].
remove
(
item
.
remoteId
()
);
mEtagCache
.
removeEtag
(
item
.
remoteId
()
);
changeProcessed
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment