From: Christoph Hohmann Date: Tue, 17 Sep 2002 12:19:16 +0000 (+0000) Subject: * src/folder.c X-Git-Tag: rel_0_8_3~18 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=1155f65dd7bcf9d571cdfb0dbbc211c85179d6af;hp=b5a891ebbc0641fda972595896ab332dc4ac0078 * src/folder.c initialize max values for cache and folder when cache or folder is empty --- diff --git a/ChangeLog.claws b/ChangeLog.claws index e8ccd2293..4041eff06 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2002-09-17 [christoph] 0.8.2claws54 + + * src/folder.c + initialize max values for cache and folder + when cache or folder is empty + 2002-09-15 [colin] 0.8.2claws53 * src/compose.c diff --git a/TODO.claws b/TODO.claws index 92a08345f..2fd1df6f4 100644 --- a/TODO.claws +++ b/TODO.claws @@ -40,6 +40,8 @@ win32 0.8.0claws+ o PEM support (S/MIME) o add new messages to the summaryview without reloading the whole list + o use template system for signatures/reply and forward format + (template selectable globally, in account prefs or folder prefs) [paul] diff --git a/configure.in b/configure.in index 42306043b..299e3187f 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=8 MICRO_VERSION=2 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws53 +EXTRA_VERSION=claws54 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/folder.c b/src/folder.c index b91fa29f2..56f62db9e 100644 --- a/src/folder.c +++ b/src/folder.c @@ -934,8 +934,10 @@ gint folder_item_scan(FolderItem *item) cache_cur_num = ((MsgInfo *)cache_list_cur->data)->msgnum; cache_list_last = g_slist_last(cache_list); cache_max_num = ((MsgInfo *)cache_list_last->data)->msgnum; - } else + } else { cache_cur_num = G_MAXINT; + cache_max_num = 0; + } if (folder_list_cur != NULL) { GSList *folder_list_last; @@ -943,8 +945,10 @@ gint folder_item_scan(FolderItem *item) folder_cur_num = GPOINTER_TO_INT(folder_list_cur->data); folder_list_last = g_slist_last(folder_list); folder_max_num = GPOINTER_TO_INT(folder_list_last->data); - } else + } else { folder_cur_num = G_MAXINT; + folder_max_num = 0; + } while ((cache_cur_num != G_MAXINT) || (folder_cur_num != G_MAXINT)) { /*