Ignore:
Timestamp:
2010-02-06T23:41:55+01:00 (16 years ago)
Author:
pieren
Message:

from Clément Ménier, new option allowing an auto-selection of the first cadastre layer for grab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java

    r18544 r19894  
    4141            if (existingWMSlayers.size() == 0)
    4242                return new MenuActionNewLocation().addNewLayer(existingWMSlayers);
    43             JOptionPane.showMessageDialog(Main.parent,
    44                     tr("More than one WMS layer present\nSelect one of them first, then retry"));
     43            if (Main.pref.getBoolean("cadastrewms.autoFirstLayer", false)) {
     44                return existingWMSlayers.get(0);
     45            } else {
     46                JOptionPane.showMessageDialog(Main.parent,
     47                        tr("More than one WMS layer present\nSelect one of them first, then retry"));
     48            }
    4549        } else {
    4650            return new MenuActionNewLocation().addNewLayer(existingWMSlayers);
Note: See TracChangeset for help on using the changeset viewer.