Ignore:
Timestamp:
2021-08-24T02:43:50+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20690 - fix #21240 - Refactoring of UploadDialog, HistoryComboBox and AutoCompletingComboBox (patch by marcello)

File:
1 edited

Legend:

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

    r17162 r18173  
    4242     */
    4343    public final void initFromPreferences() {
    44         overpassServer.setPossibleItems(OverpassDownloadReader.OVERPASS_SERVER_HISTORY.get());
     44        overpassServer.getModel().prefs().load(OverpassDownloadReader.OVERPASS_SERVER_HISTORY);
    4545        overpassServer.setText(OverpassDownloadReader.OVERPASS_SERVER.get());
    4646        forMultiFetch.setSelected(OverpassDownloadReader.FOR_MULTI_FETCH.get());
     
    5252    public final void saveToPreferences() {
    5353        OverpassDownloadReader.OVERPASS_SERVER.put(overpassServer.getText());
    54         OverpassDownloadReader.OVERPASS_SERVER_HISTORY.put(overpassServer.getHistory());
     54        overpassServer.getModel().prefs().save(OverpassDownloadReader.OVERPASS_SERVER_HISTORY);
    5555        OverpassDownloadReader.FOR_MULTI_FETCH.put(forMultiFetch.isSelected());
    5656    }
Note: See TracChangeset for help on using the changeset viewer.