Bug corrected.
This commit is contained in:
parent
08ad929615
commit
13ea5211b3
@ -117,15 +117,14 @@ const QString & MimeMessage::getSubject() const
|
|||||||
|
|
||||||
const QList<MimePart*> & MimeMessage::getParts() const
|
const QList<MimePart*> & MimeMessage::getParts() const
|
||||||
{
|
{
|
||||||
if (typeid(content) == typeid(MimeMultiPart)) {
|
if (typeid(*content) == typeid(MimeMultiPart)) {
|
||||||
return static_cast<MimeMultiPart*>(content)->getParts();
|
return ((MimeMultiPart*) content)->getParts();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QList<MimePart*> *res = new QList<MimePart*>();
|
QList<MimePart*> *res = new QList<MimePart*>();
|
||||||
res->append(content);
|
res->append(content);
|
||||||
return *res;
|
return *res;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* [2] --- */
|
/* [2] --- */
|
||||||
|
Loading…
Reference in New Issue
Block a user