uri = midori_view_get_display_uri (view);
title = midori_view_get_display_title (view);
action = _action_by_name (browser, "Location");
- if (browser->maximum_history_age)
- midori_location_action_set_title_for_uri (
- MIDORI_LOCATION_ACTION (action), title, uri);
+
if (midori_view_get_load_status (view) == MIDORI_LOAD_COMMITTED)
{
KatzeItem* item;
midori_location_action_set_uri (MidoriLocationAction* location_action,
const gchar* uri)
{
+ gchar* escaped_uri;
+
g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
g_return_if_fail (uri != NULL);
- katze_assign (location_action->uri, g_uri_unescape_string (uri, ""));
-
- midori_location_action_set_text (location_action, uri);
+ escaped_uri = g_uri_unescape_string (uri, "");
+ midori_location_action_set_text (location_action, escaped_uri);
+ g_free (escaped_uri);
}
/**