diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index 3ffc909997..a46ffbab7b 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -545,12 +545,6 @@ namespace ICSharpCode.XmlEditor public void Undo() { xmlEditor.Undo(); - - /// If all undos are complete and the file is not untitled (i.e. was loaded from the file system) then - /// the file is not dirty. - if (PrimaryFile.IsDirty && !EnableUndo && !PrimaryFile.IsUntitled) { - PrimaryFile.IsDirty = false; - } } #endregion diff --git a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs index 58da54b73a..d0a6fca9c9 100644 --- a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs +++ b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs @@ -147,12 +147,6 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor public void Undo() { this.textEditorControl.Undo(); - - /// If all undos are complete and the file is not untitled (i.e. was loaded from the file system) then - /// the file is not dirty. - if (PrimaryFile.IsDirty && !EnableUndo && !PrimaryFile.IsUntitled) { - PrimaryFile.IsDirty = false; - } } public void Redo()