Bug 9569 - only mark buffer dirty when editor is dirty
authordadubrow
Fri, 07 Aug 2009 15:49:22 -0500
changeset 395 56887eb7b034
parent 388 de0b44a3d1d2
child 396 2ee12718a766
Bug 9569 - only mark buffer dirty when editor is dirty
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;
 	}