Ignore:
Timestamp:
2018-05-24T23:05:08+02:00 (6 years ago)
Author:
Don-vip
Message:

SonarQube - fix minor issues

File:
1 edited

Legend:

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

    r13825 r13827  
    191191            formats.setToolTipText(tr("Select image format for WMS layer"));
    192192
    193             if (!GraphicsEnvironment.isHeadless()) {
    194                 if (1 != new ExtendedDialog(Main.parent, tr("Select WMS layers"), tr("Add layers"), tr("Cancel")) { {
     193            if (!GraphicsEnvironment.isHeadless() &&
     194                1 != new ExtendedDialog(Main.parent, tr("Select WMS layers"), tr("Add layers"), tr("Cancel")) { {
    195195                    final JScrollPane scrollPane = new JScrollPane(tree.getLayerTree());
    196196                    scrollPane.setPreferredSize(new Dimension(400, 400));
     
    199199                    panel.add(formats, GBC.eol().fill(GBC.HORIZONTAL));
    200200                    setContent(panel);
    201                 } }.showDialog().getValue()) {
    202                     return null;
    203                 }
     201            } }.showDialog().getValue()) {
     202                return null;
    204203            }
    205204
Note: See TracChangeset for help on using the changeset viewer.