diff options
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 6 |
1 files changed, 4 insertions, 2 deletions
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, |