* src/folder.c
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 13 Nov 2002 13:27:56 +0000 (13:27 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 13 Nov 2002 13:27:56 +0000 (13:27 +0000)
* src/folderview.c
        moved cache saving to folder_item_close
        the folderview should not have to deal with
        this things

ChangeLog.claws
configure.in
src/folder.c
src/folderview.c

index 2796685..765405e 100644 (file)
@@ -1,3 +1,11 @@
+2002-11-13 [christoph] 0.8.5claws141
+
+       * src/folder.c
+       * src/folderview.c
+               moved cache saving to folder_item_close
+               the folderview should not have to deal with
+               this things
+
 2002-11-13 [christoph] 0.8.5claws140
 
        * src/summaryview.c
index 2cd492e..d44f9d4 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws140
+EXTRA_VERSION=claws141
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 22e58ca..2a61cc4 100644 (file)
@@ -970,7 +970,6 @@ void folder_item_close(FolderItem *item)
        g_return_if_fail(item != NULL);
        
        mlist = folder_item_get_msg_list(item);
-       
        for (cur = mlist ; cur != NULL ; cur = cur->next) {
                MsgInfo * msginfo;
 
@@ -979,10 +978,12 @@ void folder_item_close(FolderItem *item)
                        procmsg_msginfo_unset_flags(msginfo, MSG_NEW, 0);
                procmsg_msginfo_free(msginfo);
        }
+       g_slist_free(mlist);
+
+       folder_item_write_cache(olditem);
        
        folder_update_item(item, FALSE);
 
-       g_slist_free(mlist);
 }
 
 gint folder_item_scan(FolderItem *item)
index 98720f6..2a1a6f3 100644 (file)
@@ -1662,7 +1662,6 @@ static void folderview_selected(GtkCTree *ctree, GtkCTreeNode *row,
                olditem = gtk_ctree_node_get_row_data(ctree, folderview->opened);
                if (olditem) {
                        /* will be null if we just moved the previously opened folder */
-                       folder_item_write_cache(olditem);
                        summary_save_prefs_to_folderitem(folderview->summaryview, olditem);
                        folder_item_close(olditem);
                }