jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1850715 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java
Date Tue, 08 Jan 2019 07:44:03 GMT
Author: pmouawad
Date: Tue Jan  8 07:44:03 2019
New Revision: 1850715

URL: http://svn.apache.org/viewvc?rev=1850715&view=rev
Log:
Bug 59633 : Menus <code>Save Test Plan as</code>, <code>Save as Test Fragment</code>
and <code>Save Selection as ...</code> should use a new file name in File Dialog
Bugzilla Id: 59633

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java?rev=1850715&r1=1850714&r2=1850715&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java Tue Jan  8 07:44:03 2019
@@ -161,11 +161,12 @@ public class Save extends AbstractAction
         if (!ActionNames.SAVE.equals(e.getActionCommand()) // Saving existing plan 
                 // New File
                 || updateFile == null) {
+            boolean isNewFile = updateFile == null;
             updateFile = computeFileName();
             if(updateFile == null) {
                 return;
             }
-            if (e.getActionCommand().equals(ActionNames.SAVE_ALL_AS)) {
+            if (e.getActionCommand().equals(ActionNames.SAVE_ALL_AS) || isNewFile) {
                 GuiPackage.getInstance().setTestPlanFile(updateFile);
             }
         }



Mime
View raw message