From 9224ebc6c790e6a981eba2c8fc29ec5f6f6e82e5 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 24 Jul 2010 14:31:54 +0000 Subject: [PATCH] Hopefully fixed contact modification --- src/phone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phone.c b/src/phone.c index e064033..31c3c92 100644 --- a/src/phone.c +++ b/src/phone.c @@ -2414,12 +2414,13 @@ static void _phone_show_contacts_dialog(Phone * phone, gboolean show, gtk_widget_hide(phone->co_dialog); return; } - if(phone->co_index < 0) + if(index < 0) snprintf(buf, sizeof(buf), "%s", _("New contact")); else snprintf(buf, sizeof(buf), "%s%s", _("Edit contact: "), (name != NULL) ? name : ""); gtk_window_set_title(GTK_WINDOW(phone->co_dialog), buf); + phone->co_index = index; if(name != NULL) gtk_entry_set_text(GTK_ENTRY(phone->co_name), name); if(number != NULL)