summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webview.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 862355e9..b48c57fe 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -268,10 +268,16 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
{
m_contextMenuHitResult = page()->mainFrame()->hitTestContent(event->pos());
+ if (m_contextMenuHitResult.isContentEditable())
+ {
+ // Check to see if handled by speller
+ if (popupSpellMenu(event))
+ return;
+ }
+
WebWindow *webwin = m_parentTab->webWindow();
KMenu menu(this);
- QAction *a;
KAction *sendByMailAction = new KAction(this);
sendByMailAction->setIcon(KIcon("mail-send"));
@@ -296,14 +302,12 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
// is content editable? Add PASTE
if (m_contextMenuHitResult.isContentEditable())
{
- // Check to see if handled by speller
- if (popupSpellMenu(event))
- return;
-
menu.addAction(pageAction(KWebPage::Paste));
menu.addSeparator();
}
+ QAction *a;
+
// EMPTY PAGE ACTIONS -------------------------------------------------------------
if (resultHit == WebView::EmptySelection)
{