Changeset 11659 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-03-04T01:09:53+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #14175 - HistoryBrowserModel removes listener twice

File:
1 edited

Legend:

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

    r11646 r11659  
    147147    @Override
    148148    public void historyDataSetCleared(HistoryDataSet source) {
    149         closeAction.run();
     149        if (isVisible()) {
     150            closeAction.run();
     151        }
    150152    }
    151153
     
    187189        @Override
    188190        public void windowClosing(WindowEvent e) {
    189             closeAction.run();
     191            if (isVisible()) {
     192                closeAction.run();
     193            }
    190194        }
    191195    }
Note: See TracChangeset for help on using the changeset viewer.