[gnome-contacts] Window: disable edit buttons after canceling the creation a new contact.



commit 5f9bc2c8f399e850c459e2afc42c338ad14ce5af
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Jan 22 12:59:57 2018 +0100

    Window: disable edit buttons after canceling the creation a new contact.

 src/contacts-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index 1739786..b674399 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -179,8 +179,10 @@ public class Contacts.Window : Gtk.ApplicationWindow {
       } else {
         this.contact_pane.create_contact.begin ();
       }
+      this.state = UiState.NORMAL;
     } else {
       this.contact_pane.set_edit_mode (false, drop_changes);
+      this.state = UiState.SHOWING;
     }
 
     if (this.contact_pane.contact != null) {
@@ -188,8 +190,6 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     } else {
       this.right_header.title = "";
     }
-
-    this.state = UiState.SHOWING;
   }
 
   public void add_notification (InAppNotification notification) {


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