diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-07-13 08:25:16 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-07-13 08:25:16 +0000 |
commit | 174df0c34591a06bef42c9a01b72361a8c8402af (patch) | |
tree | 307af3c47a7e317544ab01b53496ca9e06e7ea0d /src | |
parent | 45df4ba499e0c859f49a0bc10747bd3a24cfeddb (diff) |
also update junk folder path when a folder is renamed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1864 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/folderview.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/folderview.c b/src/folderview.c index 94c9d9b4..b777ae6e 100644 --- a/src/folderview.c +++ b/src/folderview.c @@ -2343,10 +2343,13 @@ static void folderview_rename_folder_cb(FolderView *folderview, guint action, return; } - if (folder_get_default_folder() == item->folder) + if (folder_get_default_folder() == item->folder) { filter_list_rename_path(old_path, item->path); + prefs_common_junk_folder_rename_path(old_path, item->path); + } new_id = folder_item_get_identifier(item); filter_list_rename_path(old_id, new_id); + prefs_common_junk_folder_rename_path(old_id, new_id); g_free(old_id); g_free(new_id); @@ -2413,10 +2416,13 @@ static void folderview_move_folder_cb(FolderView *folderview, guint action, return; } - if (folder_get_default_folder() == item->folder) + if (folder_get_default_folder() == item->folder) { filter_list_rename_path(old_path, item->path); + prefs_common_junk_folder_rename_path(old_path, item->path); + } new_id = folder_item_get_identifier(item); filter_list_rename_path(old_id, new_id); + prefs_common_junk_folder_rename_path(old_id, new_id); g_free(new_id); g_free(old_id); g_free(old_path); |