[gthumb/ext] do not try to delete anymore after a "not supported" error



commit 5be8fbb9f893b1c16da7d3e6d237331fad2eb289
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Sep 22 12:50:46 2009 +0200

    do not try to delete anymore after a "not supported" error
    
    [bug #594769]

 extensions/photo_importer/gth-import-task.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/extensions/photo_importer/gth-import-task.c b/extensions/photo_importer/gth-import-task.c
index db72752..111b325 100644
--- a/extensions/photo_importer/gth-import-task.c
+++ b/extensions/photo_importer/gth-import-task.c
@@ -128,8 +128,10 @@ copy_ready_cb (GError   *error,
 	GthImportTask *self = user_data;
 	gboolean       appling_tranformation = FALSE;
 
-	if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
+	if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
+		self->priv->delete_imported = FALSE;
 		error = NULL;
+	}
 
 	if (error != NULL) {
 		gth_task_completed (GTH_TASK (self), error);



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