0.9.11cvs14
authorChristoph Hohmann <reboot@gmx.ch>
Sat, 19 Jun 2004 11:32:23 +0000 (11:32 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sat, 19 Jun 2004 11:32:23 +0000 (11:32 +0000)
* src/folder.c
        fix FolderItem name update

(Closes Bug 511 Folder-Renaming not reflected immediately)

ChangeLog.claws
configure.ac
src/folder.c
src/msgcache.c

index 7b23e0e098b62d6acca358a2a8228e796215d799..216b9f4b4f83d4d04bc4434bc255b5e480e0bd53 100644 (file)
@@ -1,3 +1,10 @@
+2004-06-19 [christoph] 0.9.11cvs14
+
+       * src/folder.c
+               fix FolderItem name update
+
+       (Closes Bug 511 Folder-Renaming not reflected immediately)
+
 2004-06-17 [paul]      0.9.11cvs13
        
        * sync with main 0.9.12 release
index ca60fba08ff29d3958cffb2b5e12f2c37a70bed6..7eb240b8fa0a1c669a133553a95276f70ae827c6 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=13
+EXTRA_VERSION=14
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index 997a5d1b7b4d8a1e8a362d0a6aea5691609c665d..229170d1d5c0c102fcd64970d710089a82bd2263 100644 (file)
@@ -806,7 +806,8 @@ gint folder_item_rename(FolderItem *item, gchar *newname)
                FolderItemUpdateData hookdata;
 
                hookdata.item = item;
-               hookdata.update_flags = FOLDER_TREE_CHANGED;
+               hookdata.update_flags = F_ITEM_UPDATE_NAME;
+               hookdata.msg = NULL;
                hooks_invoke(FOLDER_ITEM_UPDATE_HOOKLIST, &hookdata);
        }
 
index 0a3c956744012449ee52cea557fe5c33029c61db..b9651dcd66fcbf75570e1c9cebd75aed0fd485dd 100644 (file)
@@ -402,15 +402,14 @@ MsgCache *msgcache_read_cache(FolderItem *item, const gchar *cache_file)
                cache->memusage += procmsg_msginfo_memusage(msginfo);
        }
        fclose(fp);
+       g_hash_table_thaw(cache->msgnum_table);
 
        if(error) {
-               g_hash_table_thaw(cache->msgnum_table);
                msgcache_destroy(cache);
                return NULL;
        }
 
        cache->last_access = time(NULL);
-       g_hash_table_thaw(cache->msgnum_table);
 
        debug_print("done. (%d items read)\n", g_hash_table_size(cache->msgnum_table));
        debug_print("Cache size: %d messages, %d byte\n", g_hash_table_size(cache->msgnum_table), cache->memusage);