From e5a38f3232986b53ab64b01655aa5732aaa371a2 Mon Sep 17 00:00:00 2001 From: Devashish Sharma Date: Mon, 6 Mar 2006 10:10:01 +0000 Subject: Fix for Bug 332136. svn path=/trunk/; revision=31656 --- addressbook/importers/evolution-ldif-importer.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'addressbook/importers/evolution-ldif-importer.c') diff --git a/addressbook/importers/evolution-ldif-importer.c b/addressbook/importers/evolution-ldif-importer.c index 02607e8cb5..9259b8f879 100644 --- a/addressbook/importers/evolution-ldif-importer.c +++ b/addressbook/importers/evolution-ldif-importer.c @@ -702,13 +702,6 @@ ldif_import(EImport *ei, EImportTarget *target, EImportImporter *im) return; } - if (!e_book_is_writable (book)) { - g_message(G_STRLOC ":Book is readonly"); - e_import_complete(ei, target); - g_object_unref(book); - return; - } - filename = g_filename_from_uri(s->uri_src, NULL, NULL); if (filename != NULL) { file = g_fopen(filename, "r"); @@ -732,7 +725,7 @@ ldif_import(EImport *ei, EImportTarget *target, EImportImporter *im) fseek(file, 0, SEEK_SET); gci->dn_contact_hash = g_hash_table_new(g_str_hash, g_str_equal); - e_book_open(gci->book, TRUE, NULL); + e_book_open(gci->book, FALSE, NULL); gci->idle_id = g_idle_add(ldif_import_contacts, gci); } -- cgit