aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSivaiah Nallagatla <siva@src.gnome.org>2004-01-20 14:20:26 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-01-20 14:20:26 +0800
commit702dc0414f3c0ad843ce3f8b389bc601861f889b (patch)
tree4d9fee47b0d7002c591047eea621864a32e454a5 /addressbook
parent1d2599d6a894c46f47e9d4cc901ce8dfa41228c5 (diff)
downloadgsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar
gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.gz
gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.bz2
gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.lz
gsoc2013-evolution-702dc0414f3c0ad843ce3f8b389bc601861f889b.tar.xz
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')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c6
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,