diff options
author | pschwabauer <[email protected]> | 2024-02-16 11:29:21 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2024-04-05 09:21:39 +0200 |
commit | f315d011c0f4c0b1996aa5649bd722e852e35e45 (patch) | |
tree | 9db24d7f97433e836d29572f62a69901c8752ee7 | |
parent | d3b795b935fc2129b95a0cc66880814581598e6f (diff) | |
download | tdepim-f315d011c0f4c0b1996aa5649bd722e852e35e45.tar.gz tdepim-f315d011c0f4c0b1996aa5649bd722e852e35e45.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 <[email protected]>
(cherry picked from commit 9ab93f257bb9d9a62ab8c13bc654fd10f0df4f27)
-rw-r--r-- | kmail/kmmimeparttree.cpp | 3 |
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()) ); |