From: Mateusz Warowny Date: Mon, 25 Apr 2022 16:30:11 +0000 (+0200) Subject: JAL-3878 Fix edit settings dialog prompting to discard changes on creation. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0c733956b2db7a4a62b5ece1edc2990c5beecb58;p=jalview.git JAL-3878 Fix edit settings dialog prompting to discard changes on creation. --- diff --git a/src/jalview/gui/WsJobParameters.java b/src/jalview/gui/WsJobParameters.java index c1a925d..9f92eb5 100644 --- a/src/jalview/gui/WsJobParameters.java +++ b/src/jalview/gui/WsJobParameters.java @@ -173,7 +173,7 @@ public class WsJobParameters extends JPanel implements ItemListener, jbInit(); this.paramStore = store; this.service = null; - init(preset, args); + initForService(preset, args); validate(); } diff --git a/src/jalview/ws2/gui/WebServicesMenuManager.java b/src/jalview/ws2/gui/WebServicesMenuManager.java index 3cc2531..2c405ff 100644 --- a/src/jalview/ws2/gui/WebServicesMenuManager.java +++ b/src/jalview/ws2/gui/WebServicesMenuManager.java @@ -469,7 +469,7 @@ public class WebServicesMenuManager { final WsJobParameters jobParams; if (preset == null && arguments != null && arguments.size() > 0) - jobParams = new WsJobParameters(paramStore, preset, arguments); + jobParams = new WsJobParameters(paramStore, null, arguments); else jobParams = new WsJobParameters(paramStore, preset, null); if (preset != null)