summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschwabauer <pschwabauer@intevation.de>2024-02-16 11:29:21 +0100
committerpschwabauer <pschwabauer@intevation.de>2024-04-05 09:06:33 +0200
commit9ab93f257bb9d9a62ab8c13bc654fd10f0df4f27 (patch)
tree138b26a5e03960dedbe7bef2455ccceea53c3c41
parentabef6a1ef7580f95276e0e0c23c9b5e3c2a099c4 (diff)
downloadtdepim-9ab93f257bb9d9a62ab8c13bc654fd10f0df4f27.tar.gz
tdepim-9ab93f257bb9d9a62ab8c13bc654fd10f0df4f27.zip
Allow open on all HTML parts
Currently, it is not possible to open a mail with HTML as main body part. This fixes it by checking if the content type is of `HTML` and allow it to be opened. This resolves issue #89. Signed-off-by: pschwabauer <pschwabauer@intevation.de>
-rw-r--r--kmail/kmmimeparttree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kmail/kmmimeparttree.cpp b/kmail/kmmimeparttree.cpp
index 91d8592fe..56910cb24 100644
--- a/kmail/kmmimeparttree.cpp
+++ b/kmail/kmmimeparttree.cpp
@@ -131,7 +131,8 @@ void KMMimePartTree::itemRightClicked( TQListViewItem* item,
else {
TQPopupMenu* popup = new TQPopupMenu;
if ( mCurrentContextMenuItem->node()->nodeId() > 2 &&
- mCurrentContextMenuItem->node()->typeString() != "Multipart" ) {
+ mCurrentContextMenuItem->node()->typeString() != "Multipart" ||
+ mCurrentContextMenuItem->node()->subTypeString() == "HTML" ) {
popup->insertItem( SmallIcon("document-open"), i18n("to open", "Open"), this, TQ_SLOT(slotOpen()) );
popup->insertItem( i18n("Open With..."), this, TQ_SLOT(slotOpenWith()) );
popup->insertItem( i18n("to view something", "View"), this, TQ_SLOT(slotView()) );