Ignore:
Timestamp:
2018-08-22T01:20:19+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16666 - extract DefaultBugReportSendingHandler to its own class in order to control AWT loading. Having it defined as a public static field of BugReportDialog class makes Java load AWT way too early.

File:
1 edited

Legend:

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

    r14154 r14176  
    106106import org.openstreetmap.josm.gui.SplashScreen.SplashProgressMonitor;
    107107import org.openstreetmap.josm.gui.bugreport.BugReportDialog;
     108import org.openstreetmap.josm.gui.bugreport.DefaultBugReportSendingHandler;
    108109import org.openstreetmap.josm.gui.download.DownloadDialog;
    109110import org.openstreetmap.josm.gui.io.CredentialDialog;
     
    776777        if (!GraphicsEnvironment.isHeadless()) {
    777778            BugReportQueue.getInstance().setBugReportHandler(BugReportDialog::showFor);
    778             BugReportSender.setBugReportSendingHandler(BugReportDialog.bugReportSendingHandler);
     779            BugReportSender.setBugReportSendingHandler(new DefaultBugReportSendingHandler());
    779780        }
    780781
Note: See TracChangeset for help on using the changeset viewer.