Ignore:
Timestamp:
2010-05-12T11:17:42+02:00 (15 years ago)
Author:
upliner
Message:

reverter: check if dataset is present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetAction.java

    r21225 r21237  
    3131    @Override
    3232    protected void updateEnabledState() {
    33         setEnabled(Main.main.getCurrentDataSet() != null);
     33        setEnabled(getCurrentDataSet() != null);
    3434    }
    3535   
    3636    public void actionPerformed(ActionEvent arg0) {
     37        if (getCurrentDataSet() == null)
     38            return;
    3739        ChangesetIdQuery dlg = new ChangesetIdQuery();
    3840        dlg.setVisible(true);
Note: See TracChangeset for help on using the changeset viewer.