From 8f12bba779b41d43243bed43a0878dcac85fff44 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 13 Sep 2019 20:15:16 +0900 Subject: konqueror & kdesktop: removed "open/open in new tab/..." items for encrypted media devices (either locked or unlocked) from popup menu. Signed-off-by: Michele Calgaro --- konqueror/konq_mainwindow.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'konqueror') diff --git a/konqueror/konq_mainwindow.cc b/konqueror/konq_mainwindow.cc index 193d2ebca..4ae1f63c1 100644 --- a/konqueror/konq_mainwindow.cc +++ b/konqueror/konq_mainwindow.cc @@ -4789,7 +4789,12 @@ void KonqMainWindow::slotPopupMenu( KXMLGUIClient *client, const TQPoint &_globa connectActionCollection( pPopupMenu->actionCollection() ); - pPopupMenu->factory()->addClient( konqyMenuClient ); + if (pPopupMenu->hasGroup("tabhandling")) + { + // "tabhandling" group in inserted in the popup menu if no encrypted media devices are part of "_items" + // see libkonq/konq_popupmenu.cc KonqPopupMenu::setup() method + pPopupMenu->factory()->addClient( konqyMenuClient ); + } if ( client ) pPopupMenu->factory()->addClient( client ); -- cgit v1.2.1