Avoid double unescaping on locationbar updates
This commit is contained in:
parent
f7cd519b7f
commit
7086111024
2 changed files with 2 additions and 6 deletions
|
@ -397,7 +397,7 @@ _midori_browser_set_statusbar_text (MidoriBrowser* browser,
|
||||||
MidoriLocationAction* location_action = MIDORI_LOCATION_ACTION (action);
|
MidoriLocationAction* location_action = MIDORI_LOCATION_ACTION (action);
|
||||||
if (text && *text)
|
if (text && *text)
|
||||||
{
|
{
|
||||||
midori_location_action_set_uri (location_action, text);
|
midori_location_action_set_uri (location_action, browser->statusbar_text);
|
||||||
midori_location_action_set_icon (location_action, NULL);
|
midori_location_action_set_icon (location_action, NULL);
|
||||||
midori_location_action_set_secondary_icon (location_action, NULL);
|
midori_location_action_set_secondary_icon (location_action, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1445,14 +1445,10 @@ void
|
||||||
midori_location_action_set_uri (MidoriLocationAction* location_action,
|
midori_location_action_set_uri (MidoriLocationAction* location_action,
|
||||||
const gchar* uri)
|
const gchar* uri)
|
||||||
{
|
{
|
||||||
gchar* escaped_uri;
|
|
||||||
|
|
||||||
g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
|
g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
|
||||||
g_return_if_fail (uri != NULL);
|
g_return_if_fail (uri != NULL);
|
||||||
|
|
||||||
escaped_uri = g_uri_unescape_string (uri, "");
|
midori_location_action_set_text (location_action, uri);
|
||||||
midori_location_action_set_text (location_action, escaped_uri);
|
|
||||||
g_free (escaped_uri);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue