Only encode and insert images of existing thumbnails
This commit is contained in:
parent
0efdd74c77
commit
e13bebf4de
1 changed files with 11 additions and 4 deletions
|
@ -3829,10 +3829,17 @@ prepare_speed_dial_html (MidoriView* view)
|
||||||
gchar* encoded;
|
gchar* encoded;
|
||||||
gchar* thumb_content;
|
gchar* thumb_content;
|
||||||
|
|
||||||
g_file_get_contents (thumb_file, &thumb_content, &sz, NULL);
|
if (g_access (thumb_file, F_OK) == 0)
|
||||||
encoded = g_base64_encode ((guchar*)thumb_content, sz);
|
{
|
||||||
g_free (thumb_file);
|
g_file_get_contents (thumb_file, &thumb_content, &sz, NULL);
|
||||||
g_free (thumb_content);
|
encoded = g_base64_encode ((guchar*)thumb_content, sz);
|
||||||
|
g_free (thumb_file);
|
||||||
|
g_free (thumb_content);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
encoded = "";
|
||||||
|
}
|
||||||
g_free (slot_id);
|
g_free (slot_id);
|
||||||
|
|
||||||
g_string_append_printf (markup,
|
g_string_append_printf (markup,
|
||||||
|
|
Loading…
Reference in a new issue