From 702dc0414f3c0ad843ce3f8b389bc601861f889b Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Tue, 20 Jan 2004 06:20:26 +0000 Subject: 2004 -01-20 Sivaiah Nallagatla * gui/contact-editor/e-contact-editor.c (edit_im_clicked) : do not call gtk_tree_model_get when nothing in the list is selected svn path=/trunk/; revision=24325 --- addressbook/gui/contact-editor/e-contact-editor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') 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, -- cgit