Commit d8d10399 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return warning when we extract value

parent 6d1bd503
......@@ -156,14 +156,14 @@ QString KTnef::msTNEFToVPart(const QByteArray &tnef)
prodID += QLatin1String("VERSION:2.0\n");
calFormat.setApplication(QStringLiteral("Outlook"), prodID);
iTIPMethod method;
//iTIPMethod method;
if (bCompatMethodRequest) {
method = iTIPRequest;
//method = iTIPRequest;
} else if (bCompatMethodCancled) {
method = iTIPCancel;
//method = iTIPCancel;
} else if (bCompatMethodAccepted || bCompatMethodAcceptedCond ||
bCompatMethodDeclined) {
method = iTIPReply;
//method = iTIPReply;
bIsReply = true;
} else {
// pending(khz): verify whether "0x0c17" is the right tag ???
......@@ -177,7 +177,7 @@ QString KTnef::msTNEFToVPart(const QByteArray &tnef)
if (tnefMsg->findProp(0x0c17) == QLatin1Char('1')) {
bIsReply = true;
}
method = iTIPRequest;
//method = iTIPRequest;
}
/// ### FIXME Need to get this attribute written
......
......@@ -33,6 +33,7 @@
#include "lzfu.h"
#include <QBuffer>
#include <QDebug>
#include <QList>
using namespace KTnef;
......@@ -113,7 +114,9 @@ QString KTNEFMessage::rtfString() const
QBuffer input(&propArray), output(&rtf);
if (input.open(QIODevice::ReadOnly) &&
output.open(QIODevice::WriteOnly)) {
KTnef::lzfu_decompress(&input, &output);
if (KTnef::lzfu_decompress(&input, &output) == 0) {
qWarning() << "Error when decompress data";
}
}
return QString::fromLatin1(rtf);
}
......
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