summaryrefslogtreecommitdiffstats
path: root/konqueror
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-09-13 20:15:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-10-17 10:48:30 +0800
commit8f12bba779b41d43243bed43a0878dcac85fff44 (patch)
tree720dc711259923c00b37bb0dfebd75f933c8ac3a /konqueror
parent8ab67852cd4a98363e1a3f084697e74f595cba9c (diff)
downloadtdebase-8f12bba779b41d43243bed43a0878dcac85fff44.tar.gz
tdebase-8f12bba779b41d43243bed43a0878dcac85fff44.zip
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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'konqueror')
-rw-r--r--konqueror/konq_mainwindow.cc7
1 files changed, 6 insertions, 1 deletions
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 );