Changeset 10491 in josm


Ignore:
Timestamp:
2016-06-25T12:00:32+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #13000 - Exception when deleting last layer for 2nd time (patch by michael2402) - gsoc-core

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs
Files:
2 edited

Legend:

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

    r10317 r10491  
    1717import org.openstreetmap.josm.tools.CheckParameterUtil;
    1818import org.openstreetmap.josm.tools.Destroyable;
     19import org.openstreetmap.josm.tools.bugreport.BugReport;
    1920
    2021/**
     
    323324    public void destroy() {
    324325        for (ToggleDialog t : allDialogs) {
    325             t.destroy();
     326            try {
     327                t.destroy();
     328            } catch (RuntimeException e) {
     329                throw BugReport.intercept(e).put("dialog", t).put("dialog-class", t.getClass());
     330            }
    326331        }
    327332    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r10467 r10491  
    309309            }
    310310        }
     311
     312        @Override
     313        public String toString() {
     314            return "ToggleDialogAction [" + ToggleDialog.this.toString() + ']';
     315        }
    311316    }
    312317
Note: See TracChangeset for help on using the changeset viewer.