aboutsummaryrefslogtreecommitdiffstats
path: root/src/toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-xsrc/toolbar.c9
1 files changed, 6 insertions, 3 deletions
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;