Changeset 11198 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/EditableList.java
- Timestamp:
- 2016-10-30T22:32:05+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/EditableList.java
r10611 r11198 50 50 title, 51 51 JOptionPane.QUESTION_MESSAGE); 52 if (source != null) { 52 if (source != null && !source.isEmpty()) { 53 53 ((DefaultListModel<String>) sourcesList.getModel()).addElement(source); 54 54 } … … 65 65 if (sourcesList.getModel().getSize() == 0) { 66 66 String source1 = JOptionPane.showInputDialog(Main.parent, title, title, JOptionPane.QUESTION_MESSAGE); 67 if (source1 != null) { 67 if (source1 != null && !source1.isEmpty()) { 68 68 ((DefaultListModel<String>) sourcesList.getModel()).addElement(source1); 69 69 } … … 82 82 JOptionPane.QUESTION_MESSAGE, null, null, 83 83 sourcesList.getSelectedValue()); 84 if (source2 != null) { 84 if (source2 != null && !source2.isEmpty()) { 85 85 ((DefaultListModel<String>) sourcesList.getModel()).setElementAt(source2, row); 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
