Changeset 13854 in josm
- Timestamp:
- 2018-05-26T23:42:18+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r13809 r13854 1080 1080 1081 1081 @Override 1082 public void actionPerformed(ActionEvent e) { 1083 editHelper.addTag(); 1084 btnAdd.requestFocusInWindow(); 1082 public synchronized void actionPerformed(ActionEvent e) { 1083 if (!isEnabled()) 1084 return; 1085 setEnabled(false); 1086 try { 1087 editHelper.addTag(); 1088 btnAdd.requestFocusInWindow(); 1089 } finally { 1090 setEnabled(true); 1091 } 1085 1092 } 1086 1093 } … … 1098 1105 1099 1106 @Override 1100 public void actionPerformed(ActionEvent e) {1107 public synchronized void actionPerformed(ActionEvent e) { 1101 1108 if (!isEnabled()) 1102 1109 return; 1103 if (tagTable.getSelectedRowCount() == 1) { 1104 int row = tagTable.getSelectedRow(); 1105 editHelper.editTag(row, false); 1106 } else if (membershipTable.getSelectedRowCount() == 1) { 1107 int row = membershipTable.getSelectedRow(); 1108 editMembership(row); 1110 setEnabled(false); 1111 try { 1112 if (tagTable.getSelectedRowCount() == 1) { 1113 int row = tagTable.getSelectedRow(); 1114 editHelper.editTag(row, false); 1115 } else if (membershipTable.getSelectedRowCount() == 1) { 1116 int row = membershipTable.getSelectedRow(); 1117 editMembership(row); 1118 } 1119 } finally { 1120 setEnabled(true); 1109 1121 } 1110 1122 }
Note:
See TracChangeset
for help on using the changeset viewer.