# HG changeset patch # User dadubrow # Date 1249678162 18000 # Node ID 56887eb7b034a30e5110ada75a30ec5787c02be8 # Parent de0b44a3d1d2425e20c24a062d5a12d5a88cea9d Bug 9569 - only mark buffer dirty when editor is dirty diff -r de0b44a3d1d2 -r 56887eb7b034 project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/common/CarbideFormEditor.java --- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/common/CarbideFormEditor.java Mon Aug 03 17:18:01 2009 -0500 +++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/common/CarbideFormEditor.java Fri Aug 07 15:49:22 2009 -0500 @@ -188,9 +188,6 @@ baseEditorContext.textEditorContext = undoManager.getUndoContext(); baseEditorContext.allContext.addMatch(baseEditorContext.textEditorContext); baseEditorContext.modelOperationContext.addMatch(baseEditorContext.textEditorContext); - - // mark the buffer dirty to inhibit auto-reload. See comments on setBufferDirty - textEditorPage.setBufferDirty(true); } @Override @@ -236,6 +233,8 @@ // user must have undone everything. result = true; } + // mark the buffer dirty to inhibit auto-reload. See comments on setBufferDirty + textEditorPage.setBufferDirty(result); return result; }