Changeset 17475 in josm


Ignore:
Timestamp:
2021-01-22T10:21:26+01:00 (7 weeks ago)
Author:
GerdP
Message:

fix #20134: Bug with Source-Dropdown in Upload-dialog

  • make sure that no item is selected before setting a new text. Without this the code in BasicComboPopup assumes that the editor field is equal to the selected entry.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java

    r17238 r17475  
    164164    protected void automaticallyAddSource() {
    165165        final String source = MainApplication.getMap().mapView.getLayerInformationForSourceTag();
     166        hcbUploadSource.getModel().setSelectedItem(null); // fix #20134
    166167        hcbUploadSource.setText(Utils.shortenString(source, Changeset.MAX_CHANGESET_TAG_LENGTH));
    167168        changesetSourceModel.setComment(hcbUploadSource.getText()); // Fix #9965
Note: See TracChangeset for help on using the changeset viewer.