Changeset 459 in josm for trunk/src/org


Ignore:
Timestamp:
2007-11-09T23:13:20+01:00 (17 years ago)
Author:
(none)
Message:

fix bug #426: tick the checkbox in the download dialog for "OpenStreetMap data" by default

  • set the default in DownloadOsmTask
  • don't overwrite this in DownloadDialog.java
Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r298 r459  
    5555                }
    5656        }
    57         private JCheckBox checkBox = new JCheckBox(tr("OpenStreetMap data"));
     57        private JCheckBox checkBox = new JCheckBox(tr("OpenStreetMap data"), true);
    5858
    5959        public void download(DownloadAction action, double minlat, double minlon, double maxlat, double maxlon) {
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r435 r459  
    8080                for (DownloadTask task : downloadTasks) {
    8181                        add(task.getCheckBox(), GBC.eol().insets(20,0,0,0));
    82                         task.getCheckBox().setSelected(Main.pref.getBoolean("download."+task.getPreferencesSuffix()));
     82                        // don't override defaults, if we (initially) don't have any preferences
     83                        if(Main.pref.hasKey("download."+task.getPreferencesSuffix())) {
     84                                task.getCheckBox().setSelected(Main.pref.getBoolean("download."+task.getPreferencesSuffix()));
     85                        }
    8386                }
    8487               
Note: See TracChangeset for help on using the changeset viewer.