aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-25 06:53:07 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-25 06:53:07 +0000
commit34a24148d4315d15e092760c983ff45115a32e00 (patch)
tree0592ef51839ecb8ebc2d01ccff57bc11dcb91eb5 /src/mainwindow.c
parenteca7e29772e97171adbcdad759c11dbd945c7f66 (diff)
don't show 'Empty trash' dialog if trashed messages don't exist.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@927 ee746299-78ed-0310-b773-934348b2243d
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?"),