[gthumb] removed wrong code: allow to queue an operation while cancelling



commit 5113b9094d35dad72c6c1c93eaaa5394b8200606
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Sep 19 12:26:51 2010 +0200

    removed wrong code: allow to queue an operation while cancelling

 gthumb/gth-file-list.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 67d1628..edf22f9 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -243,16 +243,12 @@ static void
 _gth_file_list_queue_op (GthFileList   *file_list,
 			 GthFileListOp *op)
 {
-	if (file_list->priv->cancelling) {
-		gth_file_list_op_free (op);
-		return;
-	}
-
 	if ((op->type == GTH_FILE_LIST_OP_TYPE_SET_FILES) || (op->type == GTH_FILE_LIST_OP_TYPE_CLEAR_FILES))
 		_gth_file_list_clear_queue (file_list);
 	if (op->type == GTH_FILE_LIST_OP_TYPE_SET_FILTER)
 		_gth_file_list_remove_op (file_list, GTH_FILE_LIST_OP_TYPE_SET_FILTER);
 	file_list->priv->queue = g_list_append (file_list->priv->queue, op);
+
 	if (! file_list->priv->loading_thumbs)
 		_gth_file_list_exec_next_op (file_list);
 }



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