After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686687 - Unable to change the address book
Unable to change the address book
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
3.10.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
available
Depends on:
Blocks:
 
 
Reported: 2012-10-23 09:03 UTC by Muflone
Modified: 2014-09-16 17:32 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10



Description Muflone 2012-10-23 09:03:52 UTC
When using a Google account the GNOME Contacts app lists two different address books in the Change address book dialog but selecting a different address book the app continues to use the previously selected address book.

Restarting the app the address book is effectively changed.

Using GNOME Contacts 3.6.1 in Arch Linux i686
Comment 1 Age Bosma (IRC: Forage) 2013-06-06 13:25:52 UTC
Confirming for 3.8.2. The issue is still present.

OS: Ubuntu GNOME 13.04 (x64).

Let me know if you need any more information.
Comment 2 Erick Perez Castellanos 2013-06-06 19:01:38 UTC
(In reply to comment #1)
> Confirming for 3.8.2. The issue is still present.
> 
> OS: Ubuntu GNOME 13.04 (x64).
> 
> Let me know if you need any more information.

A rework of the Address Book dialog is on the way.
I should check for 3.8.2 anyway.

How do you know it's still using the same address book ?
Comment 3 Age Bosma (IRC: Forage) 2013-06-07 10:46:23 UTC
I know because the contact list does not change unless I restart Contacts. The contact list remains the same when trying to switch. Doing so will have the first address book selected again instead of the new one when going back to the address books list.

Current behaviour:
1) Open Contacts
2) Go to "Change Address Book..."
3) Address book "Foo" is selected
4) Select address book "Bar" and hit Select
5) No contact list changes
6) Go back to "Change Address Book..."
7) Address book "Foo" is selected again
8) Hit Cancel and restart Contacts
9) Contacts of address book "Bar" are listed and that address book is selected in "Change Address Book..."

Expected behaviour:
1) Open Contacts
2) Go to "Change Address Book..."
3) Address book "Foo" is selected
4) Select address book "Bar" and hit Select
5) Contacts of address book "Bar" are listed
Comment 4 Age Bosma (IRC: Forage) 2013-06-07 10:52:58 UTC
P.s. If a rework of the Address Book dialog is on the way I'd even vote for making it part of the main window instead of hiding it in the menu. The more types/sources of address books are supported/available, the more you would want to switch quickly between them IMHO (e.g. Google -> private, Exchange -> work). You'd at least want to know which address book is active without having to go to the menu.
Comment 5 Allan Day 2014-04-07 11:55:40 UTC
Confirming on 3.10.1. Ideally the address book should be instantly changed. If we aren't able to change it without the app being restarted, we ought to indicate this in the UI.

If someone wants to try to fix this, the first step is to try and make sure that the address book is instantly changed. If that fails we can reassess.
Comment 6 Erick Perez Castellanos 2014-04-07 17:32:43 UTC
The issue he describe it wouldn't show up now. Since for 3.10 we show all contact from every addressbook. Changing the addressbook only changes to which place we write changes to contacts. so we should test this properly before confirming.

I should write some logs instructions so the user can test and check if the addressbook is really changed.
Comment 7 Allan Day 2014-04-08 09:44:57 UTC
(In reply to comment #6)
> The issue he describe it wouldn't show up now.
...

When I try this:

 1. Open address book dialog.
 2. Select a different account - the check mark is displayed next to it.
 3. Close the address book dialog.
 4. Open the address book dialog again - the previous account has the check mark next to it (not the one I switched to).
Comment 8 Erick Perez Castellanos 2014-09-16 17:32:29 UTC
Fixed in master.
Pushed here: https://git.gnome.org/browse/gnome-contacts/commit/?id=be0903e9d63f2c9136caa9ffe569f8b358c89298