Changeset 2780 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-01-08T22:53:27+01:00 (15 years ago)
Author:
stoecker
Message:

removed obsolete stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/LanguagePreference.java

    r2778 r2780  
    3434    /** the model for the combo box */
    3535    private LanguageComboBoxModel model;
    36     /** true, if the available translations have been loaded; false otherwise */
    37     private boolean translationsLoaded = false;
    3836
    3937    public void addGui(final PreferenceTabbedPane gui) {
    4038        model = new LanguageComboBoxModel();
    41         translationsLoaded = model.getSize() > 2;
    4239        langCombo = new JComboBox(model);
    4340        langCombo.setRenderer(new LanguageCellRenderer(langCombo.getRenderer()));
     
    5350
    5451    public boolean ok() {
    55         if (!translationsLoaded)
    56             // keep the current language, don't update preferences
    57             return false;
    5852        if(langCombo.getSelectedItem() == null)
    5953            return Main.pref.put("language", null);
Note: See TracChangeset for help on using the changeset viewer.