| Summary: | MIME type of attachment in Tree not shown but in property dialog it is | ||
|---|---|---|---|
| Product: | [Unmaintained] kmail | Reporter: | Martin Koller <martin> |
| Component: | mime | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.6.1 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
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 |