summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_xmlguiclient.cc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-09-13 20:15:16 +0900
committerMichele Calgaro <[email protected]>2020-10-17 10:48:30 +0800
commit8f12bba779b41d43243bed43a0878dcac85fff44 (patch)
tree720dc711259923c00b37bb0dfebd75f933c8ac3a /libkonq/konq_xmlguiclient.cc
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 <[email protected]>
Diffstat (limited to 'libkonq/konq_xmlguiclient.cc')
-rw-r--r--libkonq/konq_xmlguiclient.cc17
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;
+}