summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 48273fb5..acfea791 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -262,10 +262,10 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
KMenu menu(this);
- KAction *inspectAction = new KAction(KIcon("layer-visible-on"), i18n("Inspect Element"), this);
+ KAction *inspectAction = new KAction(KIcon("layer-visible-on"), i18n("Inspect Element"), &menu);
connect(inspectAction, SIGNAL(triggered(bool)), this, SLOT(inspect()));
- KAction *sendByMailAction = new KAction(this);
+ KAction *sendByMailAction = new KAction(&menu);
sendByMailAction->setIcon(KIcon("mail-send"));
connect(sendByMailAction, SIGNAL(triggered(bool)), this, SLOT(sendByMail()));