From b2185195a48b8ff2c6fc4b2da8f3ca0baf8084d4 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Sun, 25 Sep 2005 08:01:59 +0000 Subject: [PATCH] Don't ask the user if she wants to delete all 0 messages. There you go, George. svn path=/branches/KDE/3.5/kdepim/; revision=463752 --- kmheaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmheaders.cpp b/kmheaders.cpp index cfd4f504a..251b6c564 100644 --- a/kmheaders.cpp +++ b/kmheaders.cpp @@ -1461,6 +1461,7 @@ void KMHeaders::moveMsgToFolder ( KMFolder* destFolder, bool askForConfirmation if ( destFolder == mFolder ) return; // Catch the noop case KMMessageList msgList = *selectedMsgs(); + if ( msgList.isEmpty() ) return; if ( !destFolder && askForConfirmation && // messages shall be deleted KMessageBox::warningContinueCancel(this, i18n("Do you really want to delete the selected message?
" @@ -1481,7 +1482,6 @@ void KMHeaders::moveMsgToFolder ( KMFolder* destFolder, bool askForConfirmation connect( command, SIGNAL( completed( KMCommand * ) ), this, SLOT( slotMoveCompleted( KMCommand * ) ) ); command->start(); - } void KMHeaders::slotMoveCompleted( KMCommand *command )