[gthumb] check the correct error after deleting the file



commit e8181d268ccfa89a98bb6c8c355e0c1e6ab334fb
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Feb 16 19:31:30 2010 +0100

    check the correct error after deleting the file
    
    [bug #610090]

 extensions/importer/gth-import-task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/importer/gth-import-task.c b/extensions/importer/gth-import-task.c
index 814bfd4..3543c85 100644
--- a/extensions/importer/gth-import-task.c
+++ b/extensions/importer/gth-import-task.c
@@ -231,7 +231,7 @@ write_buffer_ready_cb (void     **buffer,
 				     gth_task_get_cancellable (GTH_TASK (self)),
 				     &local_error))
 		{
-			if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
+			if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
 				self->priv->delete_imported = FALSE;
 				local_error = NULL;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]