diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-12 11:13:23 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-06-12 11:13:23 +0200 |
commit | 0c70540bea80ec23e7bb62132e21b03d1458dfbc (patch) | |
tree | 819a9774bc7cabd51ef1125f7a94497373336a54 /src/contacts-contact-pane.vala | |
parent | 1685c6a7a0937b82ead2a3e2d7c71facb8a0107e (diff) | |
download | gnome-contacts-0c70540bea80ec23e7bb62132e21b03d1458dfbc.tar.gz |
ContactPane: Handle set_edit_mode to the current state silently
When deleting a contect we're currently calling set_edit_mode(false)
twice. This was causing a warning when looking if the name changed
(since the name_entry was destroyed).
Diffstat (limited to 'src/contacts-contact-pane.vala')
-rw-r--r-- | src/contacts-contact-pane.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 137ecd0..645c8e1 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -516,6 +516,9 @@ public class Contacts.ContactPane : Notebook { } public void set_edit_mode (bool on_edit) { + if (on_edit == on_edit_mode) + return; + if (on_edit) { if (contact == null) { return; |