Changeset 2780 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-01-08T22:53:27+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/LanguagePreference.java
r2778 r2780 34 34 /** the model for the combo box */ 35 35 private LanguageComboBoxModel model; 36 /** true, if the available translations have been loaded; false otherwise */37 private boolean translationsLoaded = false;38 36 39 37 public void addGui(final PreferenceTabbedPane gui) { 40 38 model = new LanguageComboBoxModel(); 41 translationsLoaded = model.getSize() > 2;42 39 langCombo = new JComboBox(model); 43 40 langCombo.setRenderer(new LanguageCellRenderer(langCombo.getRenderer())); … … 53 50 54 51 public boolean ok() { 55 if (!translationsLoaded)56 // keep the current language, don't update preferences57 return false;58 52 if(langCombo.getSelectedItem() == null) 59 53 return Main.pref.put("language", null);
Note:
See TracChangeset
for help on using the changeset viewer.