From: gmungoc Date: Fri, 27 May 2016 14:06:46 +0000 (+0100) Subject: JAL-1911 use existing object when setting 'Prompt each time' selected X-Git-Tag: Release_2_10_0~208 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f3703580024682cb917f21e47f32d97b2dac82de;p=jalview.git JAL-1911 use existing object when setting 'Prompt each time' selected --- 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());