From edcbf879c061667002b20fa12c280f3d01869ef4 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Thu, 28 Feb 2013 08:16:43 +0100 Subject: [PATCH] Fix Bug 314121 - Crash (not reported) then deleted items will not move to trash Add a messagebox to signal that we must verify imap account trash. So now we know what to do. But don't know why trash folder is empty in some case (I never had it) FIXED-IN: 4.11 BUG: 314121 --- kmmainwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kmmainwidget.cpp b/kmmainwidget.cpp index 6a4d5cd11..ae7f749f9 100644 --- a/kmmainwidget.cpp +++ b/kmmainwidget.cpp @@ -2181,9 +2181,10 @@ void KMMainWidget::slotTrashMessagesCompleted( KMMoveCommand *command ) { BroadcastStatus::instance()->setStatusMsg( i18n( "Messages moved to trash successfully." ) ); } else { - if ( command->result() == KMCommand::Failed ) + if ( command->result() == KMCommand::Failed ) { BroadcastStatus::instance()->setStatusMsg( i18n( "Moving messages to trash failed." ) ); - else + KMessageBox::error(this, i18n("Moving messages to trash failed. Please verify your trash in your IMAP account and retry."), i18n("Moving messages to trash failed")); + } else BroadcastStatus::instance()->setStatusMsg( i18n( "Moving messages to trash canceled." ) ); }