From 0c733956b2db7a4a62b5ece1edc2990c5beecb58 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 25 Apr 2022 18:30:11 +0200 Subject: [PATCH] JAL-3878 Fix edit settings dialog prompting to discard changes on creation. --- src/jalview/gui/WsJobParameters.java | 2 +- src/jalview/ws2/gui/WebServicesMenuManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.2