summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-04 11:45:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-04 11:45:30 +0200
commite4fc5fd9e48e38e9087e730ef4135ce6f95565a3 (patch)
tree0391c58398ec31b76421e0e9d9f187a6a12ad1f9 /src/webview.cpp
parentmoving from about: protocol to rekonq: protocol :D (diff)
downloadrekonq-e4fc5fd9e48e38e9087e730ef4135ce6f95565a3.tar.xz
not show the search menu if there are no search engines available.
Ronny Scholz patch (thanks)
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 417da6bc..f828fdac 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -188,7 +188,12 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
searchMenu->addAction(a);
}
}
- menu.addAction(searchMenu);
+
+ if (!searchMenu->menu()->isEmpty())
+ {
+ menu.addAction(searchMenu);
+ }
+
menu.addSeparator();
// TODO Add translate, show translation
}