aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/importers/evolution-vcard-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/importers/evolution-vcard-importer.c')
-rw-r--r--addressbook/importers/evolution-vcard-importer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/importers/evolution-vcard-importer.c b/addressbook/importers/evolution-vcard-importer.c
index e4be880dea..6aebdbd49c 100644
--- a/addressbook/importers/evolution-vcard-importer.c
+++ b/addressbook/importers/evolution-vcard-importer.c
@@ -464,6 +464,13 @@ vcard_import(EImport *ei, EImportTarget *target, EImportImporter *im)
e_import_complete(ei, target);
return;
}
+
+ if (!e_book_is_writable (book)) {
+ g_message (G_STRLOC ":Book is readonly.");
+ e_import_complete(ei, target);
+ g_object_unref(book);
+ return;
+ }
if (!g_file_get_contents (s->uri_src+7, &contents, NULL, NULL)) {
g_message (G_STRLOC ":Couldn't read file.");