Properly rename speed dial item containing multiple spaces

This commit is contained in:
Paweł Forysiuk 2011-07-04 01:48:43 +02:00 committed by Christian Dywan
parent df47a2b8d4
commit e1c79b3a60

View file

@ -5391,7 +5391,10 @@ midori_view_speed_dial_save (MidoriView* view,
}
else if (g_str_equal (action, "rename"))
{
g_key_file_set_string (key_file, dial_id, "title", parts[2]);
guint offset = strlen (parts[0]) + strlen (parts[1]) + 2;
gchar* title = g_strdup (msg + offset);
g_key_file_set_string (key_file, dial_id, "title", title);
g_free (title);
}
g_free (dial_id);