Ignore:
Timestamp:
2010-02-10T15:23:17+01:00 (10 years ago)
Author:
Gubaer
Message:

fixed #4392: exception in version history dialog on re-downloading a changed element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java

    r2936 r2961  
    108108    }
    109109
     110    public void unlinkAsListener() {
     111        getHistoryBrowser().getModel().unlinkAsListener();
     112    }
     113
     114    /* ---------------------------------------------------------------------------------- */
     115    /* interface HistoryDataSetListener                                                   */
     116    /* ---------------------------------------------------------------------------------- */
    110117    public void historyUpdated(HistoryDataSet source, PrimitiveId primitiveId) {
    111118        if (primitiveId == null || primitiveId.equals(browser.getHistory().getPrimitmiveId())) {
     
    114121    }
    115122
    116     public void unlinkAsListener() {
    117         getHistoryBrowser().getModel().unlinkAsListener();
     123    public void historyDataSetCleared(HistoryDataSet source) {
     124        closeAction.run();
    118125    }
     126
    119127
    120128    class CloseAction extends AbstractAction {
Note: See TracChangeset for help on using the changeset viewer.