[gnome-contacts] Make sure to save outstanding edit row if we're showing a new contact
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make sure to save outstanding edit row if we're showing a new contact
- Date: Mon, 19 Dec 2011 13:52:24 +0000 (UTC)
commit d6ff4b46243992b13e4cd98c8d46234f15ca70f2
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 19 12:03:54 2011 +0100
Make sure to save outstanding edit row if we're showing a new contact
src/contacts-contact-pane.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 56fd2fc..4f7f5d1 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1608,6 +1608,12 @@ public class Contacts.ContactPane : ScrolledWindow {
}
public void show_contact (Contact? new_contact, bool edit=false) {
+ if (contact == new_contact)
+ return;
+
+ if (contact != null && editing_row != null)
+ exit_edit_mode (true);
+
if (contact != null) {
contact.personas_changed.disconnect (personas_changed_cb);
contact.changed.disconnect (contact_changed_cb);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]