Changeset 5880 in josm
- Timestamp:
- 2013-04-18T17:36:14+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r5876 r5880 138 138 return types[c]; 139 139 } 140 141 140 }; 142 141 … … 224 223 tablePanel.add(propertyTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL)); 225 224 tablePanel.add(propertyTable, GBC.eol().fill(GBC.BOTH)); 226 if (! trustedSenders.contains(sender)) {225 if (!sender.isEmpty() && !trustedSenders.contains(sender)) { 227 226 final JCheckBox c = new JCheckBox(); 228 227 c.setAction(new AbstractAction(tr("Accept all tags from {0} for this session", sender) ) { … … 320 319 i++; 321 320 } 322 addTags IfNeeded(keyValue, sender);321 addTags(keyValue, sender); 323 322 } 324 323 } … … 329 328 } 330 329 331 private static void addTagsIfNeeded(String[][] keyValue, String sender) { 330 /** 331 * Ask user and add the tags he confirm 332 * @param keyValue is a table or {{tag1,val1},{tag2,val2},...} 333 * @param sender is a string for skipping confirmations. Use epmty string for always confirmed adding. 334 */ 335 public static void addTags(String[][] keyValue, String sender) { 332 336 if (trustedSenders.contains(sender)) { 333 337 if (Main.main.getCurrentDataSet() != null) {
Note:
See TracChangeset
for help on using the changeset viewer.