Skip to content
Snippets Groups Projects
Commit b1966132 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#5994: Fix addressbook plugin configuration loading

parent 1aed04cb
Branches
Tags
No related merge requests found
......@@ -454,6 +454,8 @@ GtkWidget* contacts_searchbar_new ()
book_list_iterator = book_list_iterator->next) {
book_data = (book_data_t *) book_list_iterator->data;
DEBUG("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %s", book_data->name);
if (book_data->active) {
gtk_list_store_append (liststore, &iter);
......@@ -539,7 +541,7 @@ GtkWidget* contacts_searchbar_new ()
gtk_box_pack_start (GTK_BOX (ret), addressbookentry, TRUE, TRUE, 0);
g_free (tooltip_text);
g_strfreev (book_list);
// current_addressbook = gtk_combo_box_get_active_text (GTK_COMBO_BOX (cbox));
// set_current_addressbook (current_addressbook);
......
......@@ -104,17 +104,13 @@ addressbook_config_books(gchar **book_list)
{
gchar **config_book_uid;
book_data_t *book_data;
gchar **list;
// Retrieve list of books
// list = (gchar **) dbus_get_addressbook_list();
list = NULL;
if (list == NULL)
if (book_list == NULL) {
printf("Addresbook: Error: Book list is NULL (%s:%d)\n", __FILE__, __LINE__);
return;
}
for (config_book_uid = list; *config_book_uid; config_book_uid++) {
for (config_book_uid = book_list; *config_book_uid; config_book_uid++) {
// Get corresponding book data
book_data = books_get_book_data_by_uid (*config_book_uid);
......@@ -126,8 +122,6 @@ addressbook_config_books(gchar **book_list)
book_data->active = TRUE;
}
}
g_strfreev (list);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment