jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1812447 - /jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java
Date Tue, 17 Oct 2017 19:36:15 GMT
Author: pmouawad
Date: Tue Oct 17 19:36:15 2017
New Revision: 1812447

URL: http://svn.apache.org/viewvc?rev=1812447&view=rev
Log:
Check if undo feature is enabled

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java?rev=1812447&r1=1812446&r2=1812447&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/UndoHistory.java Tue Oct 17 19:36:15 2017
@@ -310,6 +310,9 @@ public class UndoHistory implements Tree
     }
 
     void endUndoTransaction() {
+        if(!isEnabled()) {
+            return;
+        }
         if (!isTransaction()) {
             log.error("Undo transaction ended without beginning", new Exception());
             return;
@@ -322,7 +325,9 @@ public class UndoHistory implements Tree
     }
 
     void beginUndoTransaction() {
-        transactions.add(new SimpleCompoundEdit());
+        if(isEnabled()) {
+            transactions.add(new SimpleCompoundEdit());
+        }
     }
 
     boolean isTransaction() {



Mime
View raw message