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
3eb827f7
Commit
3eb827f7
authored
Mar 25, 2013
by
Grégory Oestreicher
Browse files
Prevent duplicates in mCollectionsWithTemporaryError
BUG: 313670 BUG: 314206 FIXED-IN: 4.10.2
parent
ac8d8fca
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/dav/resource/davgroupwareresource.cpp
View file @
3eb827f7
...
...
@@ -469,10 +469,13 @@ void DavGroupwareResource::onRetrieveCollectionsFinished( KJob *job )
KUrl
url
=
davUrl
.
url
();
url
.
setUser
(
QString
()
);
QStringList
urls
=
Settings
::
self
()
->
mappedCollections
(
davUrl
.
protocol
(),
url
.
prettyUrl
()
);
mCollectionsWithTemporaryError
<<
urls
;
foreach
(
const
QString
&
url
,
urls
)
{
kWarning
()
<<
"Temporary error with collection"
<<
url
;
if
(
!
mCollectionsWithTemporaryError
.
contains
(
url
)
)
mCollectionsWithTemporaryError
<<
url
;
Akonadi
::
Collection
collection
;
collection
.
setParentCollection
(
mDavCollectionRoot
);
collection
.
setRemoteId
(
url
);
...
...
Write
Preview
Markdown
is supported
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