From f3703580024682cb917f21e47f32d97b2dac82de Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 27 May 2016 15:06:46 +0100 Subject: [PATCH] JAL-1911 use existing object when setting 'Prompt each time' selected --- src/jalview/gui/Preferences.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index 117f103..afc93e0 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -369,7 +369,6 @@ public class Preferences extends GPreferences /* * Set Output tab defaults */ - epsRendering.addItem(promptEachTimeOpt); epsRendering.addItem(lineArtOpt); epsRendering.addItem(textOpt); @@ -385,8 +384,7 @@ public class Preferences extends GPreferences } else { - epsRendering.setSelectedItem(new OptionsParam(MessageManager - .getString("label.prompt_each_time"), "Prompt each time")); + epsRendering.setSelectedItem(promptEachTimeOpt); } autoIdWidth.setSelected(Cache.getDefault("FIGURE_AUTOIDWIDTH", false)); userIdWidth.setEnabled(!autoIdWidth.isSelected()); -- 1.7.10.2