]> spindle.queued.net Git - midori/commitdiff
Remove thumbnail files from cache by uri
authorPaweł Forysiuk <tuxator@o2.pl>
Wed, 13 Apr 2011 20:09:22 +0000 (22:09 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 13 Apr 2011 21:50:06 +0000 (23:50 +0200)
midori/midori-view.c

index a4769933fd539281a579f61721f604f393d3e3c6..d26e3cd2ec28c8c4188f6bb764fb3776eaec5920 100644 (file)
@@ -5745,11 +5745,13 @@ midori_view_speed_dial_save (MidoriView*  view,
 
         if (g_str_equal (action, "delete"))
         {
-            gchar* file_path = sokoke_build_thumbnail_path (parts[1]);
+            gchar* uri = g_key_file_get_string (key_file, dial_id, "uri", NULL);
+            gchar* file_path = sokoke_build_thumbnail_path (uri);
 
             g_key_file_remove_group (key_file, dial_id, NULL);
             g_unlink (file_path);
 
+            g_free (uri);
             g_free (file_path);
         }
         else if (g_str_equal (action, "add"))