From 4bc1338f7943928d6abaac5b955c2a86f5ddc8e6 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 15 Apr 2003 19:53:43 +0000 Subject: Dont set icon on bookmarks when the url is NULL ! Fix a bad crasher. 2003-04-15 Marco Pesenti Gritti * src/ephy-tab.c: (ephy_tab_set_favicon): Dont set icon on bookmarks when the url is NULL ! Fix a bad crasher. --- src/ephy-tab.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/ephy-tab.c b/src/ephy-tab.c index dea7707d5..52f668f7b 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -455,13 +455,14 @@ ephy_tab_set_favicon (EphyTab *tab, GTK_WIDGET (tab->priv->embed), favicon); - if (!tab->priv->is_active) return; - - eb = ephy_shell_get_bookmarks (ephy_shell); - ephy_bookmarks_set_icon (eb, tab->priv->location, - tab->priv->favicon_url); - ephy_window_update_control (tab->priv->window, - FaviconControl); + if (tab->priv->favicon_url[0] != '\0') + { + eb = ephy_shell_get_bookmarks (ephy_shell); + ephy_bookmarks_set_icon (eb, tab->priv->location, + tab->priv->favicon_url); + ephy_window_update_control (tab->priv->window, + FaviconControl); + } } /* Private callbacks for embed signals */ -- cgit v1.2.3