diff --git a/objecttreeparser.cpp b/objecttreeparser.cpp index 59c12125d..e67bba96a 100644 --- a/objecttreeparser.cpp +++ b/objecttreeparser.cpp @@ -219,11 +219,6 @@ namespace KMail { node->mWasProcessed = true; } - // parse the siblings (children are parsed in the 'multipart' case terms) - // ### FIXME (mmutz): use iteration instead of recursion! - if ( !showOnlyOneMimePart() && node->mNext ) - parseObjectTree( node->mNext ); - // adjust signed/encrypted flags if inline PGP was found // ### (mmutz) I think this is a bug if node->mWasProcessed is @@ -233,6 +228,11 @@ namespace KMail { processResult.adjustCryptoStatesOfNode( node ); // end of ### + // parse the siblings (children are parsed in the 'multipart' case terms) + // ### FIXME (mmutz): use iteration instead of recursion! + if ( !showOnlyOneMimePart() && node->mNext ) + parseObjectTree( node->mNext ); + } void ObjectTreeParser::defaultHandling( partNode * node, ProcessResult & result ) {