Commit f7d3da31 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

fix KGpgItemModel::changeGroup()

svn path=/branches/work/kgpg2/; revision=753060
parent 439307b9
......@@ -179,18 +179,17 @@ void
KGpgItemModel::changeGroup(KGpgGroupNode *node, const QList<KGpgNode *> &keys)
{
emit layoutAboutToBeChanged();
for (int i = 0; i < keys.count(); i++) {
for (int i = node->getChildCount() - 1; i >= 0; i--) {
bool found = false;
int j;
for (j = 0; j < node->getChildCount(); j++) {
found = (node->getChild(j)->getId() == keys.at(i)->getId());
for (int j = 0; j < keys.count(); j++) {
found = (node->getChild(i)->getId() == keys.at(j)->getId());
if (found)
break;
}
if (found)
continue;
delete node->getChild(j);
delete node->getChild(i);
}
for (int i = 0; i < keys.count(); i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment