aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index e42f6f89..632355de 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1616,6 +1616,9 @@ void main_window_empty_trash(MainWindow *mainwin, gboolean confirm)
{
GList *list;
+ if (!procmsg_trash_messages_exist())
+ return;
+
if (confirm) {
if (alertpanel(_("Empty all trash"),
_("Delete all messages in trash folders?"),