diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-12-13 18:00:07 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-12-13 18:00:07 +0100 |
commit | 3b38ecdb9ccbf8dc19847b0cccc1920dac376812 (patch) | |
tree | 2c73026feac6c8aaf2234f4c72ee73a058466ed0 | |
parent | GCI Task by Furkan Uzumcu: Context Menu Improvements (diff) | |
download | rekonq-3b38ecdb9ccbf8dc19847b0cccc1920dac376812.tar.xz |
Some changes by me: Find action after open link items
-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()) { |