diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-04 11:45:30 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-04 11:45:30 +0200 | 
| commit | e4fc5fd9e48e38e9087e730ef4135ce6f95565a3 (patch) | |
| tree | 0391c58398ec31b76421e0e9d9f187a6a12ad1f9 | |
| parent | moving from about: protocol to rekonq: protocol :D (diff) | |
| download | rekonq-e4fc5fd9e48e38e9087e730ef4135ce6f95565a3.tar.xz | |
not show the search menu if there are no search engines available.
Ronny Scholz patch (thanks)
| -rw-r--r-- | src/webview.cpp | 7 | 
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         } | 
