If there are no search engines configured, the "Search with" context menu entry 
is empty and should not be shown.

The attached patch realizes this behavior.
diff --git a/src/webview.cpp b/src/webview.cpp
index 417da6b..f828fda 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   
     }
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to