diff -r 85902f042028 -r a5e7a4f63858 psln/pslnslidesetdialog/src/pslnslidesetdrmverifier.cpp --- a/psln/pslnslidesetdialog/src/pslnslidesetdrmverifier.cpp Wed Sep 15 12:29:17 2010 +0300 +++ b/psln/pslnslidesetdialog/src/pslnslidesetdrmverifier.cpp Wed Oct 13 14:50:15 2010 +0300 @@ -121,23 +121,21 @@ res = iDRMHelper->CanSetAutomated( aSelectedFiles->MdcaPoint( index ), canBeAutomated ); - if ( res == KErrNone && !canBeAutomated ) + if ( !res && !canBeAutomated ) { ShowErrorNoteL( R_PSLN_SLIDE_SET_DRM_ERROR ); - return EFalse; } - else if ( res != KErrNone ) + else if( res == KErrUnderflow ) { - if ( res == KErrUnderflow ) + ShowErrorNoteL( R_PSLN_SLIDE_SET_IMAGE_CORRUPTED ); + } + else if ( ( res != KErrNone ) || !canBeAutomated ) + { + if ( iDRMHelper ) { - // Do not show error note for corrupted image and let it pass. - canBeAutomated = ETrue; - } - else - { - iDRMHelper->HandleErrorL( res, + iDRMHelper->HandleErrorL( + res, aSelectedFiles->MdcaPoint( index ) ); - return EFalse; } } else