changeset 1721:728aa6bf4988

fixed emitting of error signal from image loader
author nadvornik
date Thu, 24 Sep 2009 18:02:29 +0000
parents f7bb7b83a6ce
children 844714862249
files src/image-load.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-load.c	Mon Sep 21 18:48:32 2009 +0000
+++ b/src/image-load.c	Thu Sep 24 18:02:29 2009 +0000
@@ -823,6 +823,7 @@
 {
 	ImageLoader *il = data;
 	gboolean cont;
+	gboolean err;
 	
 	if (il->idle_priority > G_PRIORITY_DEFAULT_IDLE) 
 		{
@@ -835,9 +836,9 @@
 		image_loader_thread_enter_high();
 		}
 	
-	cont = image_loader_begin(il);
+	err = !image_loader_begin(il);
 	
-	if (!cont && !image_loader_get_pixbuf(il))
+	if (err)
 		{
 		/* 
 		loader failed, we have to send signal 
@@ -847,6 +848,8 @@
 		image_loader_emit_error(il);
 		}
 	
+	cont = !err;
+	
 	while (cont && !image_loader_get_is_done(il) && !image_loader_get_stopping(il))
 		{
 		if (il->idle_priority > G_PRIORITY_DEFAULT_IDLE)