Commit 09cc4f6b authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Kurt Hindenburg
Browse files

Fix Separator

Add the separator in the correct place.
I
parent 96cda154
......@@ -1684,13 +1684,15 @@ void SessionController::showDisplayContextMenu(const QPoint& position)
if (!popup.isNull()) {
updateReadOnlyActionStates();
auto contentSeparator = new QAction(popup);
contentSeparator->setSeparator(true);
// prepend content-specific actions such as "Open Link", "Copy Email Address" etc.
QSharedPointer<Filter::HotSpot> hotSpot = _view->filterActions(position);
if (hotSpot) {
popup->insertActions(popup->actions().value(0, nullptr), hotSpot->actions());
popup->insertActions(popup->actions().value(0, nullptr), hotSpot->actions() << contentSeparator );
}
auto contentSeparator = new QAction(popup);
contentSeparator->setSeparator(true);
// always update this submenu before showing the context menu,
// because the available search services might have changed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment