Changeset 14674 in josm
- Timestamp:
- 2019-01-11T21:47:35+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r12846 r14674 38 38 import org.openstreetmap.josm.gui.widgets.OsmPrimitiveTypesComboBox; 39 39 import org.openstreetmap.josm.spi.preferences.Config; 40 import org.openstreetmap.josm.tools.Logging; 40 41 import org.openstreetmap.josm.tools.Utils; 41 42 … … 208 209 public void setupDialog() { 209 210 setContent(panel, false); 210 cbType.setSelectedIndex(Config.getPref().getInt("downloadprimitive.lasttype", 0)); 211 try { 212 cbType.setSelectedIndex(Config.getPref().getInt("downloadprimitive.lasttype", 0)); 213 } catch (IllegalArgumentException e) { 214 cbType.setSelectedIndex(0); 215 Logging.warn(e); 216 } 211 217 tfId.setType(cbType.getType()); 212 218 if (Config.getPref().getBoolean("downloadprimitive.autopaste", true)) {
Note:
See TracChangeset
for help on using the changeset viewer.