[gnome-contacts] Prevent link-showing from appearing on edit-mode.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Prevent link-showing from appearing on edit-mode.
- Date: Tue, 18 Dec 2012 21:25:18 +0000 (UTC)
commit 2b166a9f7d893d241abae55ab32da11d65c68057
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Tue Dec 18 16:10:16 2012 -0500
Prevent link-showing from appearing on edit-mode.
src/contacts-contact-pane.vala | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 2d5ff84..d60914f 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -334,7 +334,11 @@ public class Contacts.ContactPane : Grid {
void delete_contact () {
if (contact != null) {
contact.hide ();
+ set_edit_mode (false);
+
this.will_delete (contact);
+
+ show_contact (null);
}
}
@@ -365,6 +369,10 @@ public class Contacts.ContactPane : Grid {
public void set_edit_mode (bool on_edit) {
if (on_edit) {
+ if (contact == null) {
+ return;
+ }
+
on_edit_mode = true;
if (contact.has_birthday ())
@@ -387,6 +395,9 @@ public class Contacts.ContactPane : Grid {
sheet.clear ();
sheet.hide ();
+ if (suggestion_grid != null)
+ suggestion_grid.destroy ();
+
editor.clear ();
editor.update (contact);
editor.show_all ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]