diff options
author | Michele Calgaro <[email protected]> | 2019-09-13 20:15:16 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-10-17 10:48:30 +0800 |
commit | 8f12bba779b41d43243bed43a0878dcac85fff44 (patch) | |
tree | 720dc711259923c00b37bb0dfebd75f933c8ac3a /libkonq/konq_xmlguiclient.cc | |
parent | 8ab67852cd4a98363e1a3f084697e74f595cba9c (diff) | |
download | tdebase-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 <[email protected]>
Diffstat (limited to 'libkonq/konq_xmlguiclient.cc')
-rw-r--r-- | libkonq/konq_xmlguiclient.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libkonq/konq_xmlguiclient.cc b/libkonq/konq_xmlguiclient.cc index c3c7215b9..a12d237c6 100644 --- a/libkonq/konq_xmlguiclient.cc +++ b/libkonq/konq_xmlguiclient.cc @@ -154,4 +154,21 @@ bool KonqXMLGUIClient::hasAction() const return d->hasAction; } +bool KonqXMLGUIClient::hasGroup(const TQString &name) const +{ + if (name.isEmpty()) + { + return false; + } + TQDomNodeList groups = m_doc.elementsByTagName("definegroup"); + for (uint idx = 0; idx < groups.count(); ++idx) + { + TQDomElement group = groups.item(idx).toElement(); + if (group.hasAttribute(d->attrName) && group.attribute(d->attrName) == name) + { + return true; + } + } + return false; +} |