JAL-1911 use existing object when setting 'Prompt each time' selected
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 27 May 2016 14:06:46 +0000 (15:06 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 27 May 2016 14:06:46 +0000 (15:06 +0100)
src/jalview/gui/Preferences.java

index 117f103..afc93e0 100755 (executable)
@@ -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());