[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim-runtime] resources/vcarddir: Fix read/write vcarddir. Now we can store contact in vcarddir t
From: Montel Laurent <montel () kde ! org>
Date: 2015-06-30 20:50:12
Message-ID: E1ZA2Ts-0005Xz-Bf () scm ! kde ! org
[Download RAW message or body]
Git commit 54f8b8b7b7dff275e841603da94af71d4afac593 by Montel Laurent.
Committed on 30/06/2015 at 20:49.
Pushed by mlaurent into branch 'master'.
Fix read/write vcarddir. Now we can store contact in vcarddir too
M +2 -2 resources/vcarddir/vcarddirresource.cpp
http://commits.kde.org/kdepim-runtime/54f8b8b7b7dff275e841603da94af71d4afac593
diff --git a/resources/vcarddir/vcarddirresource.cpp b/resources/vcarddir/vcarddirresource.cpp
index 53fc3b7..f23b9da 100644
--- a/resources/vcarddir/vcarddirresource.cpp
+++ b/resources/vcarddir/vcarddirresource.cpp
@@ -219,9 +219,9 @@ void VCardDirResource::retrieveCollections()
mimeTypes << KContacts::Addressee::mimeType();
c.setContentMimeTypes(mimeTypes);
if (Settings::self()->readOnly()) {
- c.setRights(Collection::CanChangeCollection);
+ c.setRights(Collection::ReadOnly);
} else {
- Collection::Rights rights = Collection::ReadOnly;
+ Collection::Rights rights;
rights |= Collection::CanChangeItem;
rights |= Collection::CanCreateItem;
rights |= Collection::CanDeleteItem;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic