Ticket #18429: 18429.fix_auto.patch
File 18429.fix_auto.patch, 1.3 KB (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
23 23 import javax.swing.JEditorPane; 24 24 import javax.swing.JLabel; 25 25 import javax.swing.JPanel; 26 import javax.swing.event.AncestorEvent; 27 import javax.swing.event.AncestorListener; 26 28 import javax.swing.event.ChangeEvent; 27 29 import javax.swing.event.ChangeListener; 28 30 import javax.swing.event.HyperlinkEvent; … … 115 117 if (obtainSourceAutomatically.isSelected()) { 116 118 automaticallyAddSource(); 117 119 } 120 pnl.addAncestorListener(new AncestorListener() { 121 @Override 122 public void ancestorAdded(AncestorEvent event) { 123 if (obtainSourceAutomatically.isSelected()) 124 automaticallyAddSource(); 125 } 126 127 @Override 128 public void ancestorRemoved(AncestorEvent event) { 129 // Do nothing 130 } 131 132 @Override 133 public void ancestorMoved(AncestorEvent event) { 134 // Do nothing 135 } 136 137 }); 118 138 return pnl; 119 139 } 120 140