diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | src/toolbar.c | 9 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2004-01-09 <clahey@ximian.com> + + * src/toolbar.c (update_location_editable): Check if embed is valid + here. + 2004-01-09 Christopher James Lahey <clahey@ximian.com> * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added diff --git a/src/toolbar.c b/src/toolbar.c index bf5596c24..0d52339ee 100755 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -141,9 +141,12 @@ update_location_editable (Toolbar *t) char *address; embed = ephy_window_get_active_embed (t->priv->window); - address = ephy_embed_get_location (embed, TRUE); - toolbar_set_location (t, address); - g_free (address); + if (EPHY_IS_EMBED (embed)) + { + address = ephy_embed_get_location (embed, TRUE); + toolbar_set_location (t, address); + g_free (address); + } } action_group = t->priv->action_group; |