aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xsrc/toolbar.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 835b97e86..423e7277d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;