Changeset 2928 in josm


Ignore:
Timestamp:
Feb 3, 2010 12:16:38 AM (3 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.