diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-07-31 01:07:50 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-07-31 01:07:50 +0000 |
commit | d05b31d4cd4d0f2ed611b0728f21ab17b8aa5e51 (patch) | |
tree | fb665202d9ab93e84eb542d721201e1306ebf694 /libsylph | |
parent | 5f83a4acbbb541dd9077b35eb63a8cda03848201 (diff) |
modified folder context menu on receiving.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1106 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/procmsg.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c index 4cb56811..e212a7cd 100644 --- a/libsylph/procmsg.c +++ b/libsylph/procmsg.c @@ -1238,7 +1238,12 @@ gboolean procmsg_trash_messages_exist(void) void procmsg_empty_trash(FolderItem *trash) { - if (trash && trash->total > 0) { + if (!trash) + return; + + g_return_if_fail(trash->stype == F_TRASH); + + if (trash->total > 0) { debug_print("Emptying messages in %s ...\n", trash->path); folder_item_remove_all_msg(trash); |