diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/toolbar.c | 9 |
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; |