* src/folder.c

don't free the cache of the opened
        folder in the summaryview
* src/summaryview.c
        don't unset flags, if it is not required
This commit is contained in:
Christoph Hohmann 2002-08-01 20:50:31 +00:00
parent 4ac6e4a753
commit 6a88793610
4 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2002-08-01 [christoph] 0.8.1claws9
* src/folder.c
don't free the cache of the opened
folder in the summaryview
* src/summaryview.c
don't unset flags, if it is not required
2002-08-01 [paul] 0.8.1claws8
* sync with 0.8.1cvs8

View file

@ -8,7 +8,7 @@ MINOR_VERSION=8
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=claws8
EXTRA_VERSION=claws9
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target

View file

@ -1099,6 +1099,9 @@ void folder_find_expired_caches(FolderItem *item, gpointer data)
if(item->cache == NULL)
return;
if(item->opened > 0)
return;
difftime = (gint) (time(NULL) - msgcache_get_last_access_time(item->cache));
expiretime = prefs_common.cache_min_keep_time * 60;
debug_print(_("Cache unused time: %d (Expire time: %d)\n"), difftime, expiretime);
@ -1114,6 +1117,9 @@ void folder_item_free_cache(FolderItem *item)
if(item->cache == NULL)
return;
if(item->opened > 0)
return;
folder_item_write_cache(item);
msgcache_destroy(item->cache);
item->cache = NULL;
@ -1138,7 +1144,7 @@ void folder_clean_cache_memory()
debug_print(_("Freeing cache memory for %s\n"), item->path);
memusage -= msgcache_get_memory_usage(item->cache);
folder_item_free_cache(item);
folder_item_free_cache(item);
listitem = listitem->next;
}
g_slist_free(folder_item_list);

View file

@ -2579,6 +2579,9 @@ static void summary_mark_row_as_read(SummaryView *summaryview,
msginfo = gtk_ctree_node_get_row_data(ctree, row);
if(!MSG_IS_NEW(msginfo->flags) && !MSG_IS_UNREAD(msginfo->flags))
return;
if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
summaryview->newmsgs--;
if (MSG_IS_UNREAD(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))