|
|
@ -3304,7 +3304,7 @@ void KMComposeWin::compressAttach( int idx )
|
|
|
|
msgPart = mAtmList.at( i );
|
|
|
|
msgPart = mAtmList.at( i );
|
|
|
|
TQByteArray array;
|
|
|
|
TQByteArray array;
|
|
|
|
TQBuffer dev( array );
|
|
|
|
TQBuffer dev( array );
|
|
|
|
KZip zip( &TQT_TQIODEVICE_OBJECT(dev) );
|
|
|
|
KZip zip( &dev );
|
|
|
|
TQByteArray decoded = msgPart->bodyDecodedBinary();
|
|
|
|
TQByteArray decoded = msgPart->bodyDecodedBinary();
|
|
|
|
if ( ! zip.open( IO_WriteOnly ) ) {
|
|
|
|
if ( ! zip.open( IO_WriteOnly ) ) {
|
|
|
|
KMessageBox::sorry(0, i18n("KMail could not compress the file.") );
|
|
|
|
KMessageBox::sorry(0, i18n("KMail could not compress the file.") );
|
|
|
@ -3383,7 +3383,7 @@ void KMComposeWin::uncompressAttach( int idx )
|
|
|
|
msgPart = mAtmList.at( i );
|
|
|
|
msgPart = mAtmList.at( i );
|
|
|
|
|
|
|
|
|
|
|
|
TQBuffer dev( msgPart->bodyDecodedBinary() );
|
|
|
|
TQBuffer dev( msgPart->bodyDecodedBinary() );
|
|
|
|
KZip zip( &TQT_TQIODEVICE_OBJECT(dev) );
|
|
|
|
KZip zip( &dev );
|
|
|
|
TQByteArray decoded;
|
|
|
|
TQByteArray decoded;
|
|
|
|
|
|
|
|
|
|
|
|
decoded = msgPart->bodyDecodedBinary();
|
|
|
|
decoded = msgPart->bodyDecodedBinary();
|
|
|
|