[epiphany] ephy-web-view: fix think-o in ephy_web_view_location_changed



commit b5a7d97b68324304eb7f3edeafbe29733dcc2d6d
Author: Xan Lopez <xan igalia com>
Date:   Thu Jun 28 12:40:46 2012 +0200

    ephy-web-view: fix think-o in ephy_web_view_location_changed
    
    Do not re-set the address we already have, use the location we get as
    a parameter, which comes from the same place (WebKit layer) than
    ephy_web_view_get_location used to get it from.

 embed/ephy-web-view.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 38fcdb9..a244542 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3198,12 +3198,9 @@ ephy_web_view_location_changed (EphyWebView *view,
     g_free (new_address);
     ephy_web_view_set_title (view, EMPTY_PAGE);
   } else {
-    const char *view_address;
-
-    /* we do this to get rid of an eventual password in the URL */
-    view_address = ephy_web_view_get_address (view);
-    ephy_web_view_set_address (view, view_address);
-    ephy_web_view_set_loading_title (view, view_address, TRUE);
+    /* We do this to get rid of an eventual password in the URL. */
+    ephy_web_view_set_address (view, location);
+    ephy_web_view_set_loading_title (view, location, TRUE);
   }
 
   ephy_web_view_set_link_message (view, NULL);



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