From 41e747ab437e9aa6d90015314f49d2955a3ef293 Mon Sep 17 00:00:00 2001 From: "Alejandro G. Castro" Date: Tue, 4 May 2010 12:33:00 +0200 Subject: Fix title modification in provisional state Avoid setting the provisional uri as the title if there is already a typed address, and set the loading_title before using it in the status message. Bug #593743 --- embed/ephy-web-view.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 8f77b120a..b10e38a41 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2029,15 +2029,17 @@ load_status_cb (WebKitWebView *web_view, g_signal_emit_by_name (view, "new-document-now", loading_uri); if ((priv->address == NULL || priv->address[0] == '\0') && - priv->expire_address_now == TRUE) + priv->expire_address_now == TRUE) { ephy_web_view_set_address (view, loading_uri); + ephy_web_view_set_title (view, NULL); + } + + ephy_web_view_set_loading_title (view, loading_uri, TRUE); g_free (priv->status_message); priv->status_message = g_strdup (priv->loading_title); g_object_notify (object, "status-message"); - ephy_web_view_set_title (view, NULL); - ephy_web_view_set_loading_title (view, loading_uri, TRUE); priv->expire_address_now = TRUE; } break; -- cgit v1.2.3