Commit 9c3c8757 authored by Sandro Knauß's avatar Sandro Knauß

CrytopMessagePart should not return content is used for mime.

parent d6cf75cf
......@@ -1021,6 +1021,24 @@ void CryptoMessagePart::startVerificationDetached(const QByteArray &text, KMime:
}
QString CryptoMessagePart::plaintextContent() const
{
if (!mNode) {
return MessagePart::text();
} else {
return QString();
}
}
QString CryptoMessagePart::htmlContent() const
{
if (!mNode) {
return MessagePart::text();
} else {
return QString();
}
}
EncapsulatedRfc822MessagePart::EncapsulatedRfc822MessagePart(ObjectTreeParser *otp, KMime::Content *node, const KMime::Message::Ptr &message)
: MessagePart(otp, QString())
, mMessage(message)
......
......@@ -311,6 +311,9 @@ public:
QByteArray mDecryptedData;
std::vector<GpgME::Signature> mSignatures;
QString plaintextContent() const Q_DECL_OVERRIDE;
QString htmlContent() const Q_DECL_OVERRIDE;
private:
/** Handles the dectyptioon of a given content
* returns true if the decryption was successfull
......
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