Fix for bug #578821
authorSergio Villar Senin <svillar@src.gnome.org>
Wed, 15 Apr 2009 10:09:18 +0000 (10:09 +0000)
committerSergio Villar Senin <svillar@src.gnome.org>
Wed, 15 Apr 2009 10:09:18 +0000 (10:09 +0000)
svn path=/trunk/; revision=10216

camel/camel-vee-folder.c

index cf74ec9..611cfb2 100644 (file)
@@ -1803,15 +1803,16 @@ subfolder_renamed_update(CamelVeeFolder *vf, CamelFolder *sub, char hash[8])
                        count--;
 
                        vinfo = vee_folder_add_uid(vf, sub, uid+8, hash);
-                       if (vinfo)
+                       if (vinfo) {
                                camel_folder_change_info_add_uid(vf->changes, camel_message_info_uid(vinfo));
 
-                       /* check unmatched uid's table for any matches */
-                       if (vf == folder_unmatched
-                           && g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, &oldval)) {
-                               g_hash_table_remove(unmatched_uids, oldkey);
-                               g_hash_table_insert(unmatched_uids, g_strdup(camel_message_info_uid(vinfo)), oldval);
-                               g_free(oldkey);
+                               /* check unmatched uid's table for any matches */
+                               if (vf == folder_unmatched
+                                   && g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, &oldval)) {
+                                       g_hash_table_remove(unmatched_uids, oldkey);
+                                       g_hash_table_insert(unmatched_uids, g_strdup(camel_message_info_uid(vinfo)), oldval);
+                                       g_free(oldkey);
+                               }
                        }
                }