Fixed node cutting/deleting not triggering isModified state

This commit is contained in:
Justin Aquadro 2012-11-14 20:48:25 -05:00
parent d0c521c500
commit b927f06b95

View file

@ -212,6 +212,7 @@ namespace NBTExplorer.Model
{ {
if (CanDeleteNode) { if (CanDeleteNode) {
TagParent.DeleteTag(Tag); TagParent.DeleteTag(Tag);
IsParentModified = true;
return Parent.Nodes.Remove(this); return Parent.Nodes.Remove(this);
} }
@ -251,6 +252,7 @@ namespace NBTExplorer.Model
NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag)); NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag));
TagParent.DeleteTag(Tag); TagParent.DeleteTag(Tag);
IsParentModified = true;
Parent.Nodes.Remove(this); Parent.Nodes.Remove(this);
return true; return true;
} }