Changeset 3645 in josm for trunk/src/org


Ignore:
Timestamp:
2010-10-30T17:15:44+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #5596 (patch by Kalle Lampila) - history does not show selected objects right away

File:
1 edited

Legend:

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

    r3444 r3645  
    141141        HistoryDataSet.getInstance().addHistoryDataSetListener(this);
    142142        DataSet.addSelectionListener(model);
     143        if (Main.main.getCurrentDataSet() == null) {
     144            model.selectionChanged(null);
     145        } else {
     146            model.selectionChanged(Main.main.getCurrentDataSet().getSelected());
     147        }
    143148    }
    144149
Note: See TracChangeset for help on using the changeset viewer.