Changeset 11198 in josm
- Timestamp:
- 2016-10-30T22:32:05+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r11173 r11198 817 817 while (true) { 818 818 s = JOptionPane.showInputDialog(this, tr("Please enter the number of recently added tags to display"), s); 819 if (s == null ) {819 if (s == null || s.isEmpty()) { 820 820 return; 821 821 } -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r10811 r11198 591 591 JOptionPane.QUESTION_MESSAGE 592 592 ); 593 if (s != null ) {593 if (s != null && !s.isEmpty()) { 594 594 model.addElement(s); 595 595 } … … 617 617 list.getSelectedValue() 618 618 ); 619 if (s != null ) {619 if (s != null && !s.isEmpty()) { 620 620 model.setElementAt(s, list.getSelectedIndex()); 621 621 } -
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.