[epiphany] ephy-web-view: do not set favicon when we have no address



commit f89e7385d0a0c34669a69c057aed9643c0c13fbb
Author: Nguyen Thai Ngoc Duy <pclouds gmail com>
Date:   Sat Dec 12 12:28:22 2009 +0200

    ephy-web-view: do not set favicon when we have no address
    
    This shouldn't happen in theory, but the double check fixes a crasher
    opening URLs from gmail.
    
    Bug #604375
    
    Signed-off-by: Xan Lopez <xan gnome org>

 embed/ephy-web-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 29c7699..6fd1a4d 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -931,7 +931,7 @@ _ephy_web_view_set_icon_address (EphyWebView *view,
     g_object_notify (object, "icon");
   }
 
-  if (icon_address) {
+  if (icon_address && priv->address) {
     history = EPHY_HISTORY (ephy_embed_shell_get_global_history (embed_shell));
     ephy_history_set_icon (history, priv->address, icon_address);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]