aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 9efe6df832..c435b3c281 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -53,7 +53,6 @@
#include "mail-local.h"
#include "mail-config.h"
-#include <camel/camel-vtrash-folder.h>
#include <camel/camel-mime-message.h>
#include <camel/camel-stream-mem.h>
@@ -1141,7 +1140,7 @@ folder_browser_toggle_hide_deleted (BonoboUIComponent *component,
if (type != Bonobo_UIComponent_STATE_CHANGED)
return;
- if (!(fb->folder && CAMEL_IS_VTRASH_FOLDER(fb->folder)))
+ if (!(fb->folder && (fb->folder->folder_flags & CAMEL_FOLDER_IS_TRASH)))
mail_config_set_hide_deleted (atoi (state));
message_list_set_hidedeleted (fb->message_list, atoi (state));
}