From: Paweł Forysiuk Date: Sun, 3 Jul 2011 23:48:43 +0000 (+0200) Subject: Properly rename speed dial item containing multiple spaces X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c79b3a60d664d66bc4d837f1bed57a16fb0ae6;p=midori Properly rename speed dial item containing multiple spaces --- diff --git a/midori/midori-view.c b/midori/midori-view.c index c3ed4e08..7b76dbeb 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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);