[evolution-rss] update import queue on errors too



commit 90021bd8353477a0efaf803622fc0a948b5ac52d
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Jun 13 00:34:58 2010 +0300

    update import queue on errors too

 src/rss.c |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 635f1d2..960d009 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -3060,23 +3060,6 @@ add:
 		if (rf->cancel_all || rf->import_cancel)
 			goto out;
 
-		if (rf->import) {
-			rf->import--;
-			d("IMPORT:%d, chn:%s\n", rf->import, chn_name);
-			progress++;
-			update_progress_bar(rf->import);
-		}
-
-		if (!rf->import) {
-			if (rf->progress_dialog)
-				gtk_widget_destroy(rf->progress_dialog);
-			rf->progress_bar = NULL;
-			rf->progress_dialog = NULL;
-			progress = 0;
-			rf->display_cancel = 0;
-			rf->import_cancel = 0;
-			rf->cancel_all = 0;
-		}
 
 		taskbar_op_set_progress(tmsgkey, tmsg, 0.9);
 
@@ -3136,6 +3119,23 @@ add:
 		_("Invalid Feed"));
 
 out:	rf->pending = FALSE;
+	if (rf->import) {
+		rf->import--;
+		d("IMPORT queue size:%d\n", rf->import);
+		progress++;
+		update_progress_bar(rf->import);
+	}
+
+	if (!rf->import) {
+		if (rf->progress_dialog)
+			gtk_widget_destroy(rf->progress_dialog);
+		rf->progress_bar = NULL;
+		rf->progress_dialog = NULL;
+		progress = 0;
+		rf->display_cancel = 0;
+		rf->import_cancel = 0;
+		rf->cancel_all = 0;
+	}
 	if (!rf->setup && feed->cancelable != NULL) {
 		void (*f)() = (GFunc)feed->cancelable;
 		f(feed->cancelable_arg);
@@ -4217,7 +4217,8 @@ custom_update_articles(CDATA *cdata)
 		// check if we're enabled and no cancelation signal pending
 		// and no imports pending
 		dp("cdata->key:%s\n", (gchar *)cdata->key);
-		if (g_hash_table_lookup(rf->hre, lookup_key(cdata->key)) && !rf->cancel && !rf->import) {
+		if (g_hash_table_lookup(rf->hre, lookup_key(cdata->key))
+		&& !rf->cancel && !rf->import) {
 			d("\nFetching: %s..%s\n",
 				(char *)g_hash_table_lookup(rf->hr,
 					lookup_key(cdata->key)),



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