From e1c79b3a60d664d66bc4d837f1bed57a16fb0ae6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Mon, 4 Jul 2011 01:48:43 +0200 Subject: [PATCH] Properly rename speed dial item containing multiple spaces --- midori/midori-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5