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


Ignore:
Timestamp:
2009-06-10T16:16:01+02:00 (15 years ago)
Author:
stoecker
Message:

fix some usability issues - see #2460

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

Legend:

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

    r1646 r1658  
    806806                toDownload.size())), GBC.eol());
    807807
    808             if (JOptionPane.showConfirmDialog(Main.parent, msg,
     808            if (toDownload.size() > 1 && JOptionPane.showConfirmDialog(Main.parent, msg,
    809809                tr("Download from OSM along this track"),
    810810                JOptionPane.OK_CANCEL_OPTION) == JOptionPane.CANCEL_OPTION) {
  • trunk/src/org/openstreetmap/josm/tools/DontShowAgainInfo.java

    r1169 r1658  
    1717
    1818    public static boolean show(String prefKey, String msg) {
    19         return show(prefKey, new JLabel(msg), true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);
     19        return show(prefKey, new JLabel(msg), false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);
    2020    }
    2121
     
    2525
    2626    public static boolean show(String prefKey, Container msg) {
    27         return show(prefKey, msg, true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);
     27        return show(prefKey, msg, false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);
    2828    }
    2929
    3030    public static boolean show(String prefKey, Container msg, Boolean state, int options, int true_option) {
    31         if (!Main.pref.getBoolean("message."+prefKey)) {
     31        if (!Main.pref.getBoolean("message."+prefKey, state)) {
    3232            JCheckBox dontshowagain = new JCheckBox(tr("Do not show again"));
    3333            dontshowagain.setSelected(Main.pref.getBoolean("message."+prefKey, state));
Note: See TracChangeset for help on using the changeset viewer.