Changeset 9993 in josm
- Timestamp:
- 2016-03-14T20:28:28+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/relation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r9657 r9993 460 460 } 461 461 462 void addMembersAtIndex (final Iterable<RelationMember> newMembers, final int index) {462 void addMembersAtIndexKeepingOldSelection(final Iterable<RelationMember> newMembers, final int index) { 463 463 int idx = index; 464 464 for (RelationMember member : newMembers) { … … 466 466 } 467 467 invalidateConnectionType(); 468 final List<Integer> selection = getSelectedIndices(); 468 469 fireTableRowsInserted(index, idx - 1); 470 setSelectedMembersIdx(selection); 469 471 } 470 472 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTransferHandler.java
r9711 r9993 107 107 } 108 108 } 109 destination.getMemberTableModel().addMembersAtIndex (membersToAdd, insertRow);109 destination.getMemberTableModel().addMembersAtIndexKeepingOldSelection(membersToAdd, insertRow); 110 110 } 111 111
Note:
See TracChangeset
for help on using the changeset viewer.