summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-10-19 11:31:18 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-19 17:37:08 (GMT)
commitf33f8c759a13da6ab663bd9fd1baef17a238836d (patch)
tree44f6037567d6eed4e0c98df9e1d704d668180570
parent4bf291cdbc7081cc8af728cda9653ea57edc38dd (diff)
tolerate group member ids to begin with 0x
CCBUG:371004
-rw-r--r--core/KGpgGroupNode.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/KGpgGroupNode.cpp b/core/KGpgGroupNode.cpp
index b5de9b8..b33e689 100644
--- a/core/KGpgGroupNode.cpp
+++ b/core/KGpgGroupNode.cpp
@@ -1,4 +1,4 @@
-/* Copyright 2008,2009,2010,2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
+/* Copyright 2008,2009,2010,2012,2016 Rolf Eike Beer <kde@opensource.sf-tec.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -121,7 +121,10 @@ KGpgGroupNode::KGpgGroupNode(KGpgRootNode *parent, const QString &name, const QS
d_ptr(new KGpgGroupNodePrivate(name))
{
foreach (const QString &id, members)
- new KGpgGroupMemberNode(this, id);
+ if (id.startsWith(QLatin1String("0x")))
+ new KGpgGroupMemberNode(this, id.mid(2));
+ else
+ new KGpgGroupMemberNode(this, id);
parent->m_groups++;
}