Changeset 17174 in josm


Ignore:
Timestamp:
2020-10-12T15:33:20+02:00 (13 days ago)
Author:
GerdP
Message:

fix #19055: IndexOutOfBoundsException: relation manager: refreshing data with discarding changes
Avoid concurrent update of selected members and evaluation of the selected members

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r17140 r17174  
    1919import javax.swing.DefaultListSelectionModel;
    2020import javax.swing.ListSelectionModel;
     21import javax.swing.SwingUtilities;
    2122import javax.swing.event.TableModelEvent;
    2223import javax.swing.event.TableModelListener;
     
    123124        Collection<RelationMember> sel = getSelectedMembers();
    124125        fireTableDataChanged();
    125         setSelectedMembers(sel);
     126        SwingUtilities.invokeLater(() -> setSelectedMembers(sel));
    126127    }
    127128
Note: See TracChangeset for help on using the changeset viewer.