diff --git a/src/mimemessage.cpp b/src/mimemessage.cpp index 3da10e6..dacec92 100644 --- a/src/mimemessage.cpp +++ b/src/mimemessage.cpp @@ -117,15 +117,14 @@ const QString & MimeMessage::getSubject() const const QList & MimeMessage::getParts() const { - if (typeid(content) == typeid(MimeMultiPart)) { - return static_cast(content)->getParts(); + if (typeid(*content) == typeid(MimeMultiPart)) { + return ((MimeMultiPart*) content)->getParts(); } else { QList *res = new QList(); res->append(content); return *res; } - } /* [2] --- */