Ignore:
Timestamp:
2016-06-21T00:58:45+02:00 (8 years ago)
Author:
Don-vip
Message:

see #13001 - replace calls to Main.main.getCurrentDataSet() by Main.getLayerManager().getEditDataSet()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

    r10378 r10446  
    242242    protected void buttonAction(int buttonIndex, ActionEvent evt) {
    243243        // if layer all layers were closed, ignore all actions
    244         if (Main.main.getCurrentDataSet() != null && buttonIndex != 2) {
     244        if (Main.getLayerManager().getEditDataSet() != null && buttonIndex != 2) {
    245245            TableModel tm = propertyTable.getModel();
    246246            for (int i = 0; i < tm.getRowCount(); i++) {
     
    304304    public static void addTags(String[][] keyValue, String sender, Collection<? extends OsmPrimitive> primitives) {
    305305        if (trustedSenders.contains(sender)) {
    306             if (Main.main.getCurrentDataSet() != null) {
     306            if (Main.getLayerManager().getEditDataSet() != null) {
    307307                for (String[] row : keyValue) {
    308308                    Main.main.undoRedo.add(new ChangePropertyCommand(primitives, row[0], row[1]));
Note: See TracChangeset for help on using the changeset viewer.