diff options
author | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-01-20 14:20:26 +0800 |
---|---|---|
committer | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-01-20 14:20:26 +0800 |
commit | 702dc0414f3c0ad843ce3f8b389bc601861f889b (patch) | |
tree | 4d9fee47b0d7002c591047eea621864a32e454a5 /addressbook/gui/contact-editor | |
parent | 1d2599d6a894c46f47e9d4cc901ce8dfa41228c5 (diff) | |
download | gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.gz gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.zst gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.zip |
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
svn path=/trunk/; revision=24325
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, |