Summary: | MIME type of attachment in Tree not shown but in property dialog it is | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Martin Koller <kollix> |
Component: | mime | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.6.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Martin Koller
2004-04-23 13:36:59 UTC
I found this due to the MIME-Type not having a description. Following patch solves this: Index: kmmimeparttree.cpp =================================================================== RCS file: /home/kde/kdepim/kmail/kmmimeparttree.cpp,v retrieving revision 1.54 diff -u -3 -p -r1.54 kmmimeparttree.cpp --- kmmimeparttree.cpp 5 Jun 2004 17:04:41 -0000 1.54 +++ kmmimeparttree.cpp 25 Jul 2004 13:12:55 -0000 @@ -250,7 +250,7 @@ void KMMimePartTreeItem::setIconAndTextF setPixmap( 0, SmallIcon("unknown") ); } else { KMimeType::Ptr mtp = KMimeType::mimeType( mimetype ); - setText( 1, mtp ? mtp->comment() : mimetype ); + setText( 1, (mtp && !mtp->comment().isEmpty()) ? mtp->comment() : mimetype ); setPixmap( 0, mtp ? mtp->pixmap( KIcon::Small) : SmallIcon("unknown") ); } } committed into CVS 3.3 HEAD |