diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 05bf38bce6..b8c6ed2daa 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004 -01-20 Sivaiah Nallagatla <snallagatla@novell.com> + + * gui/contact-editor/e-contact-editor.c (edit_im_clicked) : do not call + gtk_tree_model_get when nothing in the list is selected + 2004-01-19 Hans Petter Jansson <hpj@ximian.com> * gui/component/select-names/e-select-names.etspec: Get name from diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 65106bc9ad..486ac40972 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -370,8 +370,10 @@ edit_im_clicked(GtkWidget *widget, EContactEditor *editor) selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); - gtk_tree_selection_get_selected(selection, NULL, &iter); - + if (! gtk_tree_selection_get_selected(selection, NULL, &iter) ) { + return; + } + gtk_tree_model_get(GTK_TREE_MODEL(editor->im_model), &iter, COLUMN_IM_SERVICE_FIELD, &old_service, COLUMN_IM_LOCATION, &old_location, |