# HG changeset patch # Parent 3ad0bc06994c207dd86dc4a91810548847fbe0db # User Ralph Benjamin Ruijs Do not run save actions when a transaction is in progress. diff --git a/openide.text/src/org/openide/text/CloneableEditorSupport.java b/openide.text/src/org/openide/text/CloneableEditorSupport.java --- a/openide.text/src/org/openide/text/CloneableEditorSupport.java +++ b/openide.text/src/org/openide/text/CloneableEditorSupport.java @@ -1135,7 +1135,7 @@ } Runnable beforeSaveRunnable = (Runnable) myDoc.getProperty("beforeSaveRunnable"); - if (beforeSaveRunnable != null) { + if (beforeSaveRunnable != null && !getUndoRedo().isInProgress()) { // Create runnable that marks next edit fired from document as save actions. // This assumes that before save tasks will run in a single atomic edit. // At the end of the edit an actual save task will be done.