From: Jim Procter Date: Mon, 2 Jul 2018 16:35:41 +0000 (+0100) Subject: JAL-3048 don’t execute dialog runner after dialog shown in js X-Git-Tag: Release_2_11_4_0~45^2~18^2~603^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=80b49d5600f5e97b9ba38819bbd1d4cc615b2b7f;p=jalview.git JAL-3048 don’t execute dialog runner after dialog shown in js --- diff --git a/src/jalview/io/JalviewFileChooser.java b/src/jalview/io/JalviewFileChooser.java index cf72ffb..872e526 100755 --- a/src/jalview/io/JalviewFileChooser.java +++ b/src/jalview/io/JalviewFileChooser.java @@ -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; }