Print errors before attempting to display image thumbnails
This commit is contained in:
parent
33f2939cbe
commit
12a6faa811
|
@ -1430,18 +1430,18 @@ static gboolean _done_thumbnails(gpointer data)
|
|||
96, &error)) == NULL)
|
||||
icon = vfs_mime_icon(browser->mime, path, type,
|
||||
NULL, NULL, 96);
|
||||
if(icon != NULL)
|
||||
{
|
||||
gtk_list_store_set(browser->store, iter,
|
||||
BC_PIXBUF_96, icon, -1);
|
||||
g_object_unref(icon);
|
||||
}
|
||||
if(error != NULL)
|
||||
{
|
||||
browser_error(NULL, error->message, 1);
|
||||
g_error_free(error);
|
||||
error = NULL;
|
||||
}
|
||||
if(icon != NULL)
|
||||
{
|
||||
gtk_list_store_set(browser->store, iter,
|
||||
BC_PIXBUF_96, icon, -1);
|
||||
g_object_unref(icon);
|
||||
}
|
||||
}
|
||||
free(type);
|
||||
free(path);
|
||||
|
|
Loading…
Reference in New Issue
Block a user