Implemented moving of groups

This commit is contained in:
Philipp Crocoll
2013-08-30 22:58:29 +02:00
parent e1de3e2cbf
commit e8ad5f0845
6 changed files with 53 additions and 28 deletions

View File

@@ -42,6 +42,11 @@ namespace keepass2android.database.edit
else
{
PwGroup group = (PwGroup)_elementToMove;
if ((_targetGroup == group) || (_targetGroup.IsContainedIn(group)))
{
Finish(false, _app.GetResourceString(UiStringKey.CannotMoveGroupHere));
return;
}
pgParent.Groups.Remove(group);
_targetGroup.AddGroup(group, true, true);
}