Ticket #19794: 19794.patch
File 19794.patch, 1.4 KB (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
5 5 6 6 import java.awt.Component; 7 7 import java.awt.GridBagLayout; 8 import java.awt.event.ActionEvent; 8 9 import java.awt.event.FocusEvent; 9 10 import java.awt.event.FocusListener; 10 11 import java.awt.event.WindowAdapter; … … 257 258 } 258 259 259 260 @Override 261 public void actionPerformed(ActionEvent arg0) { 262 super.actionPerformed(arg0); 263 if (buttons != null && !buttons.isEmpty() && buttons.get(0).isEnabled()) { 264 buttons.get(0).getAction().actionPerformed(arg0); 265 } 266 } 267 268 @Override 260 269 public boolean isValid() { 261 270 throw new UnsupportedOperationException(); 262 271 } … … 288 297 } 289 298 290 299 @Override 300 public void actionPerformed(ActionEvent arg0) { 301 super.actionPerformed(arg0); 302 if (buttons != null && !buttons.isEmpty() && buttons.get(0).isEnabled()) { 303 buttons.get(0).getAction().actionPerformed(arg0); 304 } 305 } 306 307 @Override 291 308 public boolean isValid() { 292 309 throw new UnsupportedOperationException(); 293 310 }