Changeset 2928 in josm


Ignore:
Timestamp:
2010-02-03T00:16:38+01:00 (15 years ago)
Author:
mjulius
Message:

fix issue that selection list in history panel is not updated when deselecting everything.

File:
1 edited

Legend:

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

    r2871 r2928  
    218218            data.clear();
    219219            selectionModel.clearSelection();
    220             if (newSelection == null || newSelection.isEmpty()) return;
    221             for (OsmPrimitive primitive: newSelection) {
    222                 if (primitive.isNew()) {
    223                     continue;
    224                 }
    225                 data.add(primitive);
     220            if (newSelection != null && !newSelection.isEmpty()) {
     221                for (OsmPrimitive primitive: newSelection) {
     222                    if (primitive.isNew()) {
     223                        continue;
     224                    }
     225                    data.add(primitive);
     226                }
    226227            }
    227228            fireTableDataChanged();
Note: See TracChangeset for help on using the changeset viewer.