Bug corrected.

This commit is contained in:
Tőkés Attila 2012-07-24 17:09:19 +03:00 committed by Attila
parent 08ad929615
commit 13ea5211b3

View File

@ -117,15 +117,14 @@ const QString & MimeMessage::getSubject() const
const QList<MimePart*> & MimeMessage::getParts() const
{
if (typeid(content) == typeid(MimeMultiPart)) {
return static_cast<MimeMultiPart*>(content)->getParts();
if (typeid(*content) == typeid(MimeMultiPart)) {
return ((MimeMultiPart*) content)->getParts();
}
else {
QList<MimePart*> *res = new QList<MimePart*>();
res->append(content);
return *res;
}
}
/* [2] --- */