0.9.0claws55
[claws.git] / src / folder.c
index 868cf5073c4d8092d82e8c75190be9e1b082fddf..09693e17840049de1bae041d9e27092cc1b9c17e 100644 (file)
@@ -420,6 +420,7 @@ gboolean folder_scan_tree_func(GNode *node, gpointer data)
 void folder_scan_tree(Folder *folder)
 {
        GHashTable *pptable;
+       FolderUpdateData hookdata;
        
        if (!folder->klass->scan_tree)
                return;
@@ -433,6 +434,10 @@ void folder_scan_tree(Folder *folder)
        folder_tree_destroy(folder);
        folder->klass->scan_tree(folder);
 
+       hookdata.folder = folder;
+       hookdata.update_flags = FOLDER_TREE_CHANGED;
+       hooks_invoke(FOLDER_UPDATE_HOOKLIST, &hookdata);
+
        g_node_traverse(folder->node, G_POST_ORDER, G_TRAVERSE_ALL, -1, folder_scan_tree_func, pptable);
        folder_persist_prefs_free(pptable);