Commit 5ac4b9d3 authored by Laurent Montel's avatar Laurent Montel 😁

Add support for compressed folder

parent 83fdb26e
......@@ -81,6 +81,7 @@ void AttachmentFromFolderJob::Private::compressFolder()
mCompressedFolder->setName( newName );
mCompressedFolder->setFileName( newName );
mCompressedFolder->setMimeType( "application/zip" );
mCompressedFolder->setUrl(q->url());
// mCompressedFolder->setCompressed( true );
mCompressedFolder->setData( array );
// mCompressedFolder->setCompressible(false);
......
......@@ -50,7 +50,7 @@ void AttachmentUpdateJob::Private::doStart()
if (mOriginalPart->url().isEmpty()) {
qDebug()<< " url is empty. We can't update file";
q->setError( KJob::UserDefinedError );
//q->setErrorText( job->errorString() );
q->setErrorText( QLatin1String("Url is empty.") );
q->emitResult();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment