aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-source.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-04 06:24:37 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-04 06:24:37 +0800
commit401d5cd43d5a981e137c448fdcef00d000f7d1f3 (patch)
tree44bbe7e79aad263185f695d103a7a1fc4ad54c80 /filter/filter-source.c
parent9ce710a34e75735b1ec22204869e344d4ee07be1 (diff)
downloadgsoc2013-evolution-401d5cd43d5a981e137c448fdcef00d000f7d1f3.tar.gz
gsoc2013-evolution-401d5cd43d5a981e137c448fdcef00d000f7d1f3.tar.zst
gsoc2013-evolution-401d5cd43d5a981e137c448fdcef00d000f7d1f3.zip
Prevent crashing while we work this out.
001-07-03 Peter Williams <peterw@ximian.com> * filter-source.c (get_widget): Prevent crashing while we work this out. * filter-rule.c (get_widget): Don't try to gtk_widget_grab_default with a widget that can't be the default. Altough it should be able to.... svn path=/trunk/; revision=10771
Diffstat (limited to 'filter/filter-source.c')
-rw-r--r--filter/filter-source.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/filter/filter-source.c b/filter/filter-source.c
index 83428fe09c..dff970b9a5 100644
--- a/filter/filter-source.c
+++ b/filter/filter-source.c
@@ -275,7 +275,11 @@ get_widget (FilterElement *fe)
} else {
gtk_option_menu_set_history (GTK_OPTION_MENU (omenu), 0);
g_free (fs->priv->current_url);
- fs->priv->current_url = g_strdup (first->url);
+
+ if (first)
+ fs->priv->current_url = g_strdup (first->url);
+ else
+ fs->priv->current_url = NULL;
}
return omenu;