Changeset 10446 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
- Timestamp:
- 2016-06-21T00:58:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r10378 r10446 242 242 protected void buttonAction(int buttonIndex, ActionEvent evt) { 243 243 // 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) { 245 245 TableModel tm = propertyTable.getModel(); 246 246 for (int i = 0; i < tm.getRowCount(); i++) { … … 304 304 public static void addTags(String[][] keyValue, String sender, Collection<? extends OsmPrimitive> primitives) { 305 305 if (trustedSenders.contains(sender)) { 306 if (Main. main.getCurrentDataSet() != null) {306 if (Main.getLayerManager().getEditDataSet() != null) { 307 307 for (String[] row : keyValue) { 308 308 Main.main.undoRedo.add(new ChangePropertyCommand(primitives, row[0], row[1]));
Note:
See TracChangeset
for help on using the changeset viewer.