From 04e61e6a183fdd775f8ae332fe996decd16a96a3 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 5 Nov 2012 13:19:44 +0100 Subject: [PATCH] Don't show menu when it's attachment element --- kmmainwidget.cpp | 2 +- kmreadermainwin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kmmainwidget.cpp b/kmmainwidget.cpp index 3335b1141..0caad865a 100644 --- a/kmmainwidget.cpp +++ b/kmmainwidget.cpp @@ -2969,7 +2969,7 @@ void KMMainWidget::slotDelayedMessagePopup( KJob *job ) menu->addAction( mMsgView->addAddrBookAction() ); } menu->addAction( mMsgView->copyURLAction() ); - } else { + } else if( url.protocol() != QLatin1String( "attachment" ) ) { // popup on a not-mailto URL menu->addAction( mMsgView->urlOpenAction() ); menu->addAction( mMsgView->addBookmarksAction() ); diff --git a/kmreadermainwin.cpp b/kmreadermainwin.cpp index a6b02e7ca..b59629ac9 100644 --- a/kmreadermainwin.cpp +++ b/kmreadermainwin.cpp @@ -456,7 +456,7 @@ void KMReaderMainWin::slotDelayedMessagePopup( KJob *job ) menu->addAction( mReaderWin->copyURLAction() ); copyAdded = true; - } else { + } else if( url.protocol() != QLatin1String( "attachment" ) ){ // popup on a not-mailto URL menu->addAction( mReaderWin->urlOpenAction() ); menu->addAction( mReaderWin->addBookmarksAction() );