summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}