From 3b38ecdb9ccbf8dc19847b0cccc1920dac376812 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 13 Dec 2010 18:00:07 +0100 Subject: Some changes by me: Find action after open link items --- src/webview.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 9e9203d6..ee0b9a6f 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -143,11 +143,6 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) KMenu menu(this); QAction *a; - if(result.pixmap().isNull()) - { - a = mainwindow->actionByName(KStandardAction::name(KStandardAction::Find)); - menu.addAction(a); - } KAction *inspectAction = new KAction(KIcon("layer-visible-on"), i18n("Inspect Element"), this); connect(inspectAction, SIGNAL(triggered(bool)), this, SLOT(inspect())); @@ -170,6 +165,13 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu.addSeparator(); } + // add find action. + if(result.pixmap().isNull()) + { + a = mainwindow->actionByName(KStandardAction::name(KStandardAction::Find)); + menu.addAction(a); + } + // is content editable && selected? Add CUT if (result.isContentEditable() && result.isContentSelected()) { -- cgit v1.2.1