From b927f06b955b8fcd66e402c1aadccd351b0d6ad0 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Wed, 14 Nov 2012 20:48:25 -0500 Subject: [PATCH] Fixed node cutting/deleting not triggering isModified state --- Model/TagDataNode.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Model/TagDataNode.cs b/Model/TagDataNode.cs index 465cad6..d73e954 100644 --- a/Model/TagDataNode.cs +++ b/Model/TagDataNode.cs @@ -212,6 +212,7 @@ namespace NBTExplorer.Model { if (CanDeleteNode) { TagParent.DeleteTag(Tag); + IsParentModified = true; return Parent.Nodes.Remove(this); } @@ -251,6 +252,7 @@ namespace NBTExplorer.Model NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag)); TagParent.DeleteTag(Tag); + IsParentModified = true; Parent.Nodes.Remove(this); return true; }