new filtering action : forward - some fixes
[claws.git] / src / prefs_folder_item.c
index 1897523d4df30158535e374b1025a674f97b4ca6..ce87c2fbd6baae97a0dbfe6854725943b3f94f3c 100644 (file)
@@ -31,6 +31,9 @@ void prefs_folder_item_read_config(FolderItem * item)
        gchar * path;
 
        path = folder_item_get_path(item);
+       if (!is_dir_exist(path))
+               make_dir_hier(path);
+
        prefs_read_config(param, path, FOLDERITEM_RC);
        g_free(path);
 
@@ -44,6 +47,9 @@ void prefs_folder_item_save_config(FolderItem * item)
        tmp_prefs = * item->prefs;
 
        path = folder_item_get_path(item);
+       if (!is_dir_exist(path))
+               make_dir_hier(path);
+
        prefs_save_config(param, path, FOLDERITEM_RC);
        g_free(path);
 }