summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-01-22 12:59:57 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-01-22 12:59:57 +0100
commit5f9bc2c8f399e850c459e2afc42c338ad14ce5af (patch)
treee54a7254c04b1ec626b6ba106b497157fb99f8c7 /src
parentd3997352a2c2f7950ec90e640d21cc1e719fc040 (diff)
downloadgnome-contacts-5f9bc2c8f399e850c459e2afc42c338ad14ce5af.tar.gz
Window: disable edit buttons after canceling the creation a new contact.
Diffstat (limited to 'src')
-rw-r--r--src/contacts-window.vala4
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) {