GNOME Bugzilla – Bug 700889
It is possible to open unlimited New Contact windows
Last modified: 2013-05-28 12:33:19 UTC
Created attachment 245126 [details] Screenshot demonstrating the problem Pressing the 'New' button causes a new contact dialog to appear, regardless of whether there are already is one open (see attached screenshot).
Created attachment 245127 [details] [review] Prevent multiple simultaneous 'new contact' dialogs This ensures that only one instance of the new contact dialog can exist at any one time, preventing users from opening multiple dialogs simultaneously by repeatedly clicking the 'New' button.
This should be fixed when implementing this https://raw.github.com/gnome-design-team/gnome-mockups/master/contacts/png/new-contact.png.
Review of attachment 245127 [details] [review]: Other than that, seems good to go. ::: src/contacts-new-contact-dialog.vala @@ +34,3 @@ ArrayList<TypeCombo> address_combos; + public static NewContactDialog get_instance (Store contacts_store, I would prefer to call it get_default instead
Created attachment 245448 [details] [review] Prevent multiple simultaneous 'new contact' dialogs Ok, I guess this'll do as a fix for the current implementation. v2: Rename 'get_instance()' to 'get_default()'.
Fixed. Pushed in https://git.gnome.org/browse/gnome-contacts/commit/?id=f9de25fc11d13829c5a93e7d72c04929673d6e0b