Ticket #12217: resolver-dialog-combobox-update.patch

File resolver-dialog-combobox-update.patch, 1.2 KB (added by cmuelle8, 7 years ago)

resolver-dialog-combobox-update.patch

  • src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionEditor.java

     
    22package org.openstreetmap.josm.gui.conflict.tags;
    33
    44import java.awt.Component;
     5import java.awt.event.ActionEvent;
     6import java.awt.event.ActionListener;
    57import java.util.EventObject;
    68
    79import javax.swing.JTable;
     
    2830    /* --------------------------------------------------------------------------------- */
    2931    @Override
    3032    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
     33        addActionListener(new ActionListener() {
     34
     35            @Override
     36            public void actionPerformed(ActionEvent e) {
     37                stopCellEditing();
     38            }
     39        });
    3140        setSelectedItem(value);
    3241        this.originalValue = (RelationMemberConflictDecisionType) value;
    3342        return this;