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


Ignore:
Timestamp:
2020-12-06T18:00:26+01:00 (3 years ago)
Author:
Don-vip
Message:

see #13784 - restart robustness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r17390 r17391  
    100100        }
    101101
    102         // Initiate shutdown
    103         if (isRestartSupported() && !MainApplication.exitJosm(false, 0, SaveLayersDialog.Reason.RESTART))
     102        // Leave early if restart is not possible
     103        if (!isRestartSupported())
     104            return;
     105
     106        // Initiate shutdown with a chance for user to cancel
     107        if (!MainApplication.exitJosm(false, 0, SaveLayersDialog.Reason.RESTART))
    104108            return;
    105109
Note: See TracChangeset for help on using the changeset viewer.