JAL-3048 don’t execute dialog runner after dialog shown in js
authorJim Procter <jprocter@issues.jalview.org>
Mon, 2 Jul 2018 16:35:41 +0000 (17:35 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 2 Jul 2018 16:35:41 +0000 (17:35 +0100)
src/jalview/io/JalviewFileChooser.java

index cf72ffb..872e526 100755 (executable)
@@ -193,8 +193,14 @@ public class JalviewFileChooser extends JFileChooser
 
   public void openDialog(Component parent)
   {
+    runner.resetResponses();
     int value = showOpenDialog(this);
-    runner.run(value);
+    /**
+     * @j2sNative
+     */
+    {
+      runner.firstRun(value);
+    }
   }
 
   /**
@@ -375,8 +381,12 @@ public class JalviewFileChooser extends JFileChooser
     saveparent = parent;
 
     int value = showDialog(parent, MessageManager.getString("action.save"));
-    
-    runner.run(value);
+    /**
+     * @j2sNative
+     */
+    {
+      runner.firstRun(value);
+    }
     return value;
   }