[gthumb] don't update the thumbnails if the last operation was cancelled



commit bba734821d125fd9a88c02136c3eca140ab0f128
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Sep 13 20:14:56 2010 +0200

    don't update the thumbnails if the last operation was cancelled
    
    [bug #629533]

 gthumb/gth-file-list.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 414ef89..14d48ec 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -382,6 +382,9 @@ restart_thumb_update_cb (gpointer data)
 static void
 start_update_next_thumb (GthFileList *file_list)
 {
+	if (file_list->priv->cancelled)
+		return;
+
 	if (file_list->priv->loading_thumbs)
 		return;
 
@@ -1798,7 +1801,7 @@ _gth_file_list_exec_next_op (GthFileList *file_list)
 	GthFileListOp *op;
 	gboolean       exec_next_op = TRUE;
 
-	if ((file_list->priv->queue == NULL) && ! file_list->priv->cancelled) {
+	if (file_list->priv->queue == NULL) {
 		start_update_next_thumb (file_list);
 		return;
 	}



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