|
|
|
|
@ -901,12 +901,12 @@ void KMSaveMsgCommand::slotSaveResult(KIO::Job *job) |
|
|
|
|
job->showErrorDialog(); |
|
|
|
|
setResult( Failed ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
setResult( OK ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1014,7 +1014,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job ) |
|
|
|
|
setResult( OK ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
} |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
@ -2217,7 +2217,7 @@ void KMSaveAttachmentsCommand::slotSaveAll() |
|
|
|
|
KMessageBox::information( 0, i18n("Found no attachments to save.") ); |
|
|
|
|
setResult( OK ); // The user has already been informed.
|
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -2231,7 +2231,7 @@ void KMSaveAttachmentsCommand::slotSaveAll() |
|
|
|
|
if ( !dirUrl.isValid() ) { |
|
|
|
|
setResult( Canceled ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -2253,7 +2253,7 @@ void KMSaveAttachmentsCommand::slotSaveAll() |
|
|
|
|
if ( url.isEmpty() ) { |
|
|
|
|
setResult( Canceled ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -2328,7 +2328,7 @@ void KMSaveAttachmentsCommand::slotSaveAll() |
|
|
|
|
} |
|
|
|
|
setResult( globalResult ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node, |
|
|
|
|
@ -2591,7 +2591,7 @@ void KMMailingListCommand::commandCompleted( KMCommand *command ) |
|
|
|
|
{ |
|
|
|
|
setResult( command->result() ); |
|
|
|
|
emit completed( this ); |
|
|
|
|
delete this; |
|
|
|
|
deleteLater(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
KMMailingListPostCommand::KMMailingListPostCommand( QWidget *parent, KMFolder *folder ) |
|
|
|
|
|