[gnome-contacts] Window: Deselect the contact when creating a new one



commit 7b37c1af1d95936d471d777c44213b8122d7bfcf
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Sep 26 15:41:38 2018 +0200

    Window: Deselect the contact when creating a new one
    
    This not only makes sense as no existing contact is effectively shown
    when we create a new one but this also fixes an inconsistent state when
    we cancel the creation as no contact is displayed but the previous
    contact was still selected.

 src/contacts-window.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index e517f27..3734293 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -302,6 +302,8 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     if (this.state == UiState.UPDATING || this.state == UiState.CREATING)
       return;
 
+    this.list_pane.select_contact (null);
+
     this.state = UiState.CREATING;
 
     this.right_header.title = _("New Contact");


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