diff options
-rw-r--r-- | src/webview.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
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()) { |