X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=show-message.c;h=05ced9c421c5ec780563312765ea43fa2a5f87df;hb=6ce2bf68f53fec4302121763e588c33c7cd86a9c;hp=784981b6b190166564cfd82c2114bb1b1c3ec9d1;hpb=3ca7a4fbcc9cd72330bce1b1670150af1e250006;p=obsolete%2Fnotmuch-old diff --git a/show-message.c b/show-message.c index 784981b6..05ced9c4 100644 --- a/show-message.c +++ b/show-message.c @@ -26,8 +26,6 @@ static void show_message_part (GMimeObject *part, int *part_count, void (*show_part) (GMimeObject *part, int *part_count)) { - *part_count = *part_count + 1; - if (GMIME_IS_MULTIPART (part)) { GMimeMultipart *multipart = GMIME_MULTIPART (part); int i; @@ -56,6 +54,8 @@ show_message_part (GMimeObject *part, int *part_count, return; } + *part_count = *part_count + 1; + (*show_part) (part, part_count); }