[evolution-data-server/gnome-3-4] Bug #679245 - Local address book not created



commit 098fe53f08a8066695801e9e066d389c742e48cb
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jul 2 10:48:28 2012 +0200

    Bug #679245 - Local address book not created

 addressbook/backends/file/e-book-backend-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index 5aa1631..041d8d4 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -1894,7 +1894,7 @@ e_book_backend_file_open (EBookBackendSync *backend,
 	source = e_backend_get_source (E_BACKEND (backend));
 	dirname = e_book_backend_file_extract_path_from_source (source, GET_PATH_DB_DIR);
 
-	if (!g_file_test (dirname, G_FILE_TEST_IS_DIR)) {
+	if (only_if_exists && !g_file_test (dirname, G_FILE_TEST_IS_DIR)) {
 		g_free (dirname);
 		g_propagate_error (perror, EDB_ERROR (NO_SUCH_BOOK));
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]