From 942a0ae4e6198139dbdb78ba34598fcd2d434cdd Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Thu, 6 Jul 2006 18:52:38 +0000 Subject: [PATCH] Some more KIO::Job API adjustments svn path=/trunk/KDE/kdepim/; revision=559199 --- kmcommands.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kmcommands.cpp b/kmcommands.cpp index a1aac7226..4b37426ea 100644 --- a/kmcommands.cpp +++ b/kmcommands.cpp @@ -636,7 +636,7 @@ KMCommand::Result KMUrlSaveCommand::execute() void KMUrlSaveCommand::slotUrlSaveResult( KJob *job ) { if ( job->error() ) { - static_cast(job)->showErrorDialog(); + static_cast(job)->ui()->showErrorMessage(); setResult( Failed ); emit completed( this ); } @@ -899,7 +899,7 @@ void KMSaveMsgCommand::slotSaveResult(KJob *job) } else { - static_cast(job)->showErrorDialog(); + static_cast(job)->ui()->showErrorMessage(); setResult( Failed ); emit completed( this ); deleteLater(); @@ -954,7 +954,7 @@ void KMOpenMsgCommand::slotResult( KJob *job ) { if ( job->error() ) { // handle errors - static_cast(job)->showErrorDialog(); + static_cast(job)->ui()->showErrorMessage(); setResult( Failed ); emit completed( this ); } @@ -2923,7 +2923,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus() } if ( listjob->exec() ) { - listjob->showErrorDialog( parentWidget(), i18n( "Chiasmus Backend Error" ) ); + listjob->ui()->showErrorDialog( i18n( "Chiasmus Backend Error" ) ); return; } @@ -2976,7 +2976,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus() setDeletesItself( true ); // the job below is async, we have to cleanup ourselves if ( job->start() ) { - job->showErrorDialog( parentWidget(), i18n( "Chiasmus Decryption Error" ) ); + job->ui()->showErrorDialog( i18n( "Chiasmus Decryption Error" ) ); return; } @@ -3019,7 +3019,7 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E if ( err.isCanceled() ) return; if ( err ) { - job->showErrorDialog( parentWidget(), i18n( "Chiasmus Decryption Error" ) ); + job->ui()->showErrorDialog( i18n( "Chiasmus Decryption Error" ) ); return; } @@ -3041,7 +3041,7 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E d.setDisabled( true ); // we got this far, don't delete yet KIO::Job * uploadJob = KIO::storedPut( result.toByteArray(), url, -1, overwrite, false /*resume*/ ); - uploadJob->setWindow( parentWidget() ); + uploadJob->ui()->setWindow( parentWidget() ); connect( uploadJob, SIGNAL(result(KJob*)), this, SLOT(slotAtmDecryptWithChiasmusUploadResult(KJob*)) ); } @@ -3049,7 +3049,7 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusUploadResult( KJob * job ) { if ( job->error() ) - static_cast(job)->showErrorDialog(); + static_cast(job)->ui()->showErrorMessage(); LaterDeleterWithCommandCompletion d( this ); d.setResult( OK ); }